home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1989-07-21 | 23.0 KB | [TEXT/EDIT] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: patchIP.asm
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Fri Jul 21 12:10:16 1989, modified Fri Jul 21 12:10:16 1989, creator Macintosh Edit, type ASCII, 22895 bytes "patchIP.asm" , at 0x59ef 485 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [EDIT] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 70 61 74 63 68 49 | 50 2e 61 73 6d 00 00 00 |..patchI|P.asm...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 45 44 49 | 54 01 00 00 00 00 00 00 |.TEXTEDI|T.......|
|00000050| 00 00 00 00 00 59 6f 00 | 00 01 e5 a0 ec fb 68 a0 |.....Yo.|......h.|
|00000060| ec fb 68 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..h.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 04 6b 00 00 |........|.....k..|
|00000080| 3b 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |;*******|********|
|00000090| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0d 3b 2a 09 09 09 09 |********|*.;*....|
|000000d0| 09 09 09 09 09 2a 0d 3b | 2a 09 49 63 6f 6e 20 50 |.....*.;|*.Icon P|
|000000e0| 61 74 63 68 20 4b 6c 75 | 64 67 65 09 09 09 74 69 |atch Klu|dge...ti|
|000000f0| 74 6c 65 3a 09 09 09 2a | 0d 3b 2a 09 50 61 74 63 |tle:...*|.;*.Patc|
|00000100| 68 65 73 09 09 09 09 09 | 70 61 74 63 68 49 50 2e |hes.....|patchIP.|
|00000110| 61 73 6d 09 09 2a 0d 3b | 2a 09 09 09 09 09 09 09 |asm..*.;|*.......|
|00000120| 09 09 2a 0d 3b 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |..*.;***|********|
|00000130| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000140| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000150| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000160| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 0d 0d 50 |********|*****..P|
|00000170| 4c 6f 63 61 6c 73 09 09 | 64 63 2e 6c 09 30 09 3b |Locals..|dc.l.0.;|
|00000180| 20 73 61 76 65 20 6c 6f | 63 61 6c 73 0d 0d 3b 3b | save lo|cals..;;|
|00000190| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000001a0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000001b0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000001c0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000001d0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 0d 3b 0d |;;;;;;;;|;;;;;.;.|
|000001e0| 3b 20 5b 50 2e 49 6e 73 | 74 61 6c 6c 5d 20 2d 20 |; [P.Ins|tall] - |
|000001f0| 69 6e 73 74 61 6c 6c 20 | 74 68 65 20 74 72 61 70 |install |the trap|
|00000200| 20 70 61 74 63 68 65 73 | 2e 0d 3b 0d 3b 20 49 6e | patches|..;.; In|
|00000210| 3a 09 61 34 20 2d 3e 20 | 74 61 70 65 20 63 61 63 |:.a4 -> |tape cac|
|00000220| 68 65 20 6c 6f 63 61 6c | 20 73 74 6f 72 61 67 65 |he local| storage|
|00000230| 0d 3b 0d 3b 20 4f 75 74 | 3a 09 61 6c 6c 20 72 65 |.;.; Out|:.all re|
|00000240| 67 69 73 74 65 72 73 20 | 75 6e 63 68 61 6e 67 65 |gisters |unchange|
|00000250| 64 0d 3b 09 47 65 74 52 | 65 73 6f 75 72 63 65 09 |d.;.GetR|esource.|
|00000260| 2d 20 70 61 74 63 68 65 | 64 0d 3b 09 50 6c 6f 74 |- patche|d.;.Plot|
|00000270| 49 63 6f 6e 09 2d 20 70 | 61 74 63 68 65 64 0d 3b |Icon.- p|atched.;|
|00000280| 09 43 6f 70 79 42 69 74 | 73 09 2d 20 70 61 74 63 |.CopyBit|s.- patc|
|00000290| 68 65 64 0d 3b 09 50 47 | 52 53 61 76 65 28 70 63 |hed.;.PG|RSave(pc|
|000002a0| 29 09 2d 20 67 65 74 73 | 20 6f 6c 64 20 74 72 61 |).- gets| old tra|
|000002b0| 70 20 61 64 64 72 65 73 | 73 0d 3b 09 50 50 49 53 |p addres|s.;.PPIS|
|000002c0| 61 76 65 28 70 63 29 09 | 2d 20 67 65 74 73 20 6f |ave(pc).|- gets o|
|000002d0| 6c 64 20 74 72 61 70 20 | 61 64 64 72 65 73 73 0d |ld trap |address.|
|000002e0| 3b 09 50 43 42 53 61 76 | 65 28 70 63 29 09 2d 20 |;.PCBSav|e(pc).- |
|000002f0| 67 65 74 73 20 6f 6c 64 | 20 74 72 61 70 20 61 64 |gets old| trap ad|
|00000300| 64 72 65 73 73 0d 3b 09 | 50 4c 6f 63 61 6c 73 28 |dress.;.|PLocals(|
|00000310| 70 63 29 09 2d 20 67 65 | 74 73 20 61 34 20 66 6f |pc).- ge|ts a4 fo|
|00000320| 72 20 66 75 74 75 72 65 | 20 75 73 65 0d 3b 0d 3b |r future| use.;.;|
|00000330| 20 4e 6f 74 65 73 3a 0d | 3b 20 31 29 20 20 47 65 | Notes:.|; 1) Ge|
|00000340| 74 49 63 6f 6e 20 64 6f | 65 73 6e 27 74 20 68 61 |tIcon do|esn't ha|
|00000350| 76 65 20 74 6f 20 62 65 | 20 70 61 74 63 68 65 64 |ve to be| patched|
|00000360| 20 62 65 63 61 75 73 65 | 20 69 74 20 63 61 6c 6c | because| it call|
|00000370| 73 20 47 65 74 52 65 73 | 6f 75 72 63 65 2e 0d 3b |s GetRes|ource..;|
|00000380| 0d 3b 20 32 29 20 20 50 | 61 74 63 68 69 6e 67 20 |.; 2) P|atching |
|00000390| 62 6f 74 68 20 50 6c 6f | 74 49 63 6f 6e 20 61 6e |both Plo|tIcon an|
|000003a0| 64 20 43 6f 70 79 42 69 | 74 73 20 69 73 20 72 65 |d CopyBi|ts is re|
|000003b0| 64 75 6e 64 61 6e 74 2c | 20 62 75 74 20 73 69 6e |dundant,| but sin|
|000003c0| 63 65 20 74 68 65 20 70 | 61 74 63 68 0d 3b 20 74 |ce the p|atch.; t|
|000003d0| 6f 20 50 6c 6f 74 49 63 | 6f 6e 20 69 73 20 63 6c |o PlotIc|on is cl|
|000003e0| 65 61 6e 65 72 2c 20 69 | 74 20 69 73 20 64 65 73 |eaner, i|t is des|
|000003f0| 69 72 61 62 6c 65 20 74 | 6f 20 68 61 76 65 20 62 |irable t|o have b|
|00000400| 6f 74 68 20 69 6e 73 74 | 61 6c 6c 65 64 2e 0d 3b |oth inst|alled..;|
|00000410| 0d 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |.;;;;;;;|;;;;;;;;|
|00000420| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000430| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000440| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000450| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000460| 0d 4c 41 42 45 4c 20 27 | 50 49 6e 73 74 61 6c 6c |.LABEL '|PInstall|
|00000470| 27 0d 50 49 6e 73 74 61 | 6c 6c 3a 0d 09 53 41 56 |'.PInsta|ll:..SAV|
|00000480| 45 5f 41 4c 4c 0d 0d 3b | 20 73 65 74 20 75 70 20 |E_ALL..;| set up |
|00000490| 61 34 0d 09 6d 6f 76 65 | 2e 6c 09 61 34 73 61 76 |a4..move|.l.a4sav|
|000004a0| 65 28 70 63 29 2c 61 34 | 0d 0d 3b 20 70 61 74 63 |e(pc),a4|..; patc|
|000004b0| 68 20 74 68 65 20 47 65 | 74 52 65 73 6f 75 72 63 |h the Ge|tResourc|
|000004c0| 65 20 74 72 61 70 0d 09 | 6d 6f 76 65 09 23 47 52 |e trap..|move.#GR|
|000004d0| 54 72 61 70 2c 64 30 0d | 09 5f 47 65 74 54 72 61 |Trap,d0.|._GetTra|
|000004e0| 70 41 64 64 72 65 73 73 | 0d 09 6c 65 61 09 50 47 |pAddress|..lea.PG|
|000004f0| 52 53 61 76 65 28 70 63 | 29 2c 61 31 0d 09 6d 6f |RSave(pc|),a1..mo|
|00000500| 76 65 2e 6c 09 61 30 2c | 28 61 31 29 09 09 3b 20 |ve.l.a0,|(a1)..; |
|00000510| 73 61 76 65 20 6f 6c 64 | 20 61 64 64 72 65 73 73 |save old| address|
|00000520| 0d 09 6d 6f 76 65 09 23 | 47 52 54 72 61 70 2c 64 |..move.#|GRTrap,d|
|00000530| 30 0d 09 6c 65 61 09 50 | 47 65 74 52 65 73 6f 75 |0..lea.P|GetResou|
|00000540| 72 63 65 28 70 63 29 2c | 61 30 0d 09 5f 53 65 74 |rce(pc),|a0.._Set|
|00000550| 54 72 61 70 41 64 64 72 | 65 73 73 0d 0d 3b 20 70 |TrapAddr|ess..; p|
|00000560| 61 74 63 68 20 74 68 65 | 20 50 6c 6f 74 49 63 6f |atch the| PlotIco|
|00000570| 6e 20 74 72 61 70 0d 09 | 6d 6f 76 65 09 23 50 49 |n trap..|move.#PI|
|00000580| 54 72 61 70 2c 64 30 0d | 09 5f 47 65 74 54 72 61 |Trap,d0.|._GetTra|
|00000590| 70 41 64 64 72 65 73 73 | 0d 09 6c 65 61 09 50 50 |pAddress|..lea.PP|
|000005a0| 49 53 61 76 65 28 70 63 | 29 2c 61 31 0d 09 6d 6f |ISave(pc|),a1..mo|
|000005b0| 76 65 2e 6c 09 61 30 2c | 28 61 31 29 09 09 3b 20 |ve.l.a0,|(a1)..; |
|000005c0| 73 61 76 65 20 6f 6c 64 | 20 61 64 64 72 65 73 73 |save old| address|
|000005d0| 0d 09 6d 6f 76 65 09 23 | 50 49 54 72 61 70 2c 64 |..move.#|PITrap,d|
|000005e0| 30 0d 09 6c 65 61 09 50 | 50 6c 6f 74 49 63 6f 6e |0..lea.P|PlotIcon|
|000005f0| 28 70 63 29 2c 61 30 0d | 09 5f 53 65 74 54 72 61 |(pc),a0.|._SetTra|
|00000600| 70 41 64 64 72 65 73 73 | 0d 0d 3b 20 70 61 74 63 |pAddress|..; patc|
|00000610| 68 20 74 68 65 20 43 6f | 70 79 42 69 74 73 20 74 |h the Co|pyBits t|
|00000620| 72 61 70 0d 09 6d 6f 76 | 65 09 23 43 42 54 72 61 |rap..mov|e.#CBTra|
|00000630| 70 2c 64 30 0d 09 5f 47 | 65 74 54 72 61 70 41 64 |p,d0.._G|etTrapAd|
|00000640| 64 72 65 73 73 0d 09 6c | 65 61 09 50 43 42 53 61 |dress..l|ea.PCBSa|
|00000650| 76 65 28 70 63 29 2c 61 | 31 0d 09 6d 6f 76 65 2e |ve(pc),a|1..move.|
|00000660| 6c 09 61 30 2c 28 61 31 | 29 09 09 3b 20 73 61 76 |l.a0,(a1|)..; sav|
|00000670| 65 20 6f 6c 64 20 61 64 | 64 72 65 73 73 0d 09 6d |e old ad|dress..m|
|00000680| 6f 76 65 09 23 43 42 54 | 72 61 70 2c 64 30 0d 09 |ove.#CBT|rap,d0..|
|00000690| 6c 65 61 09 50 43 6f 70 | 79 42 69 74 73 28 70 63 |lea.PCop|yBits(pc|
|000006a0| 29 2c 61 30 0d 09 5f 53 | 65 74 54 72 61 70 41 64 |),a0.._S|etTrapAd|
|000006b0| 64 72 65 73 73 0d 0d 09 | 52 45 53 54 4f 52 45 5f |dress...|RESTORE_|
|000006c0| 41 4c 4c 0d 09 72 74 73 | 0d 0d 3b 3b 3b 3b 3b 3b |ALL..rts|..;;;;;;|
|000006d0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000006e0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000006f0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000700| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000710| 3b 3b 3b 3b 3b 3b 3b 3b | 0d 3b 0d 3b 20 50 2e 47 |;;;;;;;;|.;.; P.G|
|00000720| 65 74 2e 52 65 73 6f 75 | 72 63 65 09 09 2d 20 50 |et.Resou|rce..- P|
|00000730| 61 74 63 68 20 74 6f 20 | 47 65 74 52 65 73 6f 75 |atch to |GetResou|
|00000740| 72 63 65 0d 3b 0d 3b 20 | 20 20 54 68 69 73 20 70 |rce.;.; | This p|
|00000750| 61 74 63 68 20 69 6e 74 | 65 72 63 65 70 74 73 20 |atch int|ercepts |
|00000760| 47 65 74 52 65 73 6f 75 | 72 63 65 20 63 61 6c 6c |GetResou|rce call|
|00000770| 73 2e 20 20 49 74 20 77 | 6f 72 6b 73 20 69 6e 20 |s. It w|orks in |
|00000780| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6d 61 |the foll|owing ma|
|00000790| 6e 6e 65 72 3a 0d 3b 0d | 3b 20 69 66 20 28 74 79 |nner:.;.|; if (ty|
|000007a0| 70 65 20 69 73 20 6e 6f | 74 20 49 43 4e 23 29 0d |pe is no|t ICN#).|
|000007b0| 3b 09 64 69 73 70 61 74 | 63 68 0d 3b 20 73 61 76 |;.dispat|ch.; sav|
|000007c0| 65 20 70 61 72 61 6d 65 | 74 65 72 73 3b 0d 3b 20 |e parame|ters;.; |
|000007d0| 63 61 6c 6c 20 6f 72 69 | 67 69 6e 61 6c 20 47 65 |call ori|ginal Ge|
|000007e0| 74 52 65 73 6f 75 72 63 | 65 20 74 6f 20 6c 6f 61 |tResourc|e to loa|
|000007f0| 64 20 69 6e 20 74 68 65 | 20 63 6f 72 72 65 73 70 |d in the| corresp|
|00000800| 6f 6e 64 69 6e 67 20 27 | 63 69 63 6e 27 0d 3b 20 |onding '|cicn'.; |
|00000810| 69 66 20 65 72 72 6f 72 | 0d 3b 09 72 65 73 74 6f |if error|.;.resto|
|00000820| 72 65 20 70 61 72 61 6d | 65 74 65 72 73 0d 3b 09 |re param|eters.;.|
|00000830| 64 69 73 70 61 74 63 68 | 0d 3b 20 73 61 76 65 20 |dispatch|.; save |
|00000840| 27 63 69 63 6e 27 20 69 | 6e 20 6f 75 72 20 69 63 |'cicn' i|n our ic|
|00000850| 6f 6e 2d 73 74 6f 72 61 | 67 65 20 61 72 65 61 0d |on-stora|ge area.|
|00000860| 3b 20 69 66 20 6e 6f 74 | 20 65 6e 6f 75 67 68 20 |; if not| enough |
|00000870| 72 6f 6f 6d 20 6c 65 66 | 74 20 69 6e 20 6f 75 72 |room lef|t in our|
|00000880| 20 73 74 6f 72 61 67 65 | 20 61 72 65 61 0d 3b 09 | storage| area.;.|
|00000890| 72 65 73 74 6f 72 65 20 | 70 61 72 61 6d 65 74 65 |restore |paramete|
|000008a0| 72 73 0d 3b 09 64 69 73 | 70 61 74 63 68 0d 3b 20 |rs.;.dis|patch.; |
|000008b0| 72 65 73 74 6f 72 65 20 | 70 61 72 61 6d 65 74 65 |restore |paramete|
|000008c0| 72 73 0d 3b 20 67 65 74 | 20 72 65 74 75 72 6e 20 |rs.; get| return |
|000008d0| 61 64 64 72 65 73 73 20 | 66 72 6f 6d 20 73 74 61 |address |from sta|
|000008e0| 63 6b 0d 3b 20 63 61 6c | 6c 20 6f 72 69 67 69 6e |ck.; cal|l origin|
|000008f0| 61 6c 20 47 65 74 52 65 | 73 6f 75 72 63 65 20 74 |al GetRe|source t|
|00000900| 6f 20 67 65 74 20 74 68 | 65 20 61 63 74 75 61 6c |o get th|e actual|
|00000910| 20 69 63 6f 6e 0d 3b 20 | 69 66 20 69 74 20 64 69 | icon.; |if it di|
|00000920| 64 6e 27 74 20 73 75 63 | 63 65 65 64 0d 3b 09 70 |dn't suc|ceed.;.p|
|00000930| 6c 61 63 65 20 72 65 74 | 75 72 6e 20 76 61 6c 75 |lace ret|urn valu|
|00000940| 65 20 6f 6e 20 73 74 61 | 63 6b 0d 3b 09 72 65 74 |e on sta|ck.;.ret|
|00000950| 75 72 6e 20 74 6f 20 6f | 72 69 67 69 6e 61 6c 20 |urn to o|riginal |
|00000960| 72 65 74 75 72 6e 20 61 | 64 64 72 65 73 73 0d 3b |return a|ddress.;|
|00000970| 20 73 65 61 72 63 68 20 | 66 6f 72 20 74 68 69 73 | search |for this|
|00000980| 20 49 43 4e 23 20 2d 20 | 69 66 20 61 6c 72 65 61 | ICN# - |if alrea|
|00000990| 64 79 20 69 6e 20 6f 75 | 72 20 74 61 62 6c 65 2c |dy in ou|r table,|
|000009a0| 20 74 68 65 6e 0d 3b 09 | 70 6c 61 63 65 20 72 65 | then.;.|place re|
|000009b0| 74 75 72 6e 20 76 61 6c | 75 65 20 6f 6e 20 73 74 |turn val|ue on st|
|000009c0| 61 63 6b 0d 3b 09 72 65 | 74 75 72 6e 20 74 6f 20 |ack.;.re|turn to |
|000009d0| 6f 72 69 67 69 6e 61 6c | 20 72 65 74 75 72 6e 20 |original| return |
|000009e0| 61 64 64 72 65 73 73 0d | 3b 20 73 61 76 65 20 49 |address.|; save I|
|000009f0| 43 4e 23 20 69 6e 20 6f | 75 72 20 73 74 6f 72 61 |CN# in o|ur stora|
|00000a00| 67 65 20 61 72 65 61 0d | 3b 20 75 70 64 61 74 65 |ge area.|; update|
|00000a10| 20 6e 65 78 74 20 61 6e | 64 20 74 61 69 6c 20 70 | next an|d tail p|
|00000a20| 6f 69 6e 74 65 72 73 0d | 3b 20 70 6c 61 63 65 20 |ointers.|; place |
|00000a30| 72 65 74 75 72 6e 20 76 | 61 6c 75 65 20 6f 6e 20 |return v|alue on |
|00000a40| 73 74 61 63 6b 0d 3b 20 | 72 65 74 75 72 6e 20 74 |stack.; |return t|
|00000a50| 6f 20 6f 72 69 67 69 6e | 61 6c 20 72 65 74 75 72 |o origin|al retur|
|00000a60| 6e 20 61 64 64 72 65 73 | 73 0d 3b 0d 3b 20 20 54 |n addres|s.;.; T|
|00000a70| 68 65 20 73 74 61 63 6b | 20 66 6f 72 20 61 20 47 |he stack| for a G|
|00000a80| 65 74 52 65 73 6f 75 72 | 63 65 20 63 61 6c 6c 20 |etResour|ce call |
|00000a90| 6c 6f 6f 6b 73 20 6c 69 | 6b 65 20 74 68 69 73 3a |looks li|ke this:|
|00000aa0| 0d 3b 0d 3b 20 20 20 20 | 20 20 20 20 20 20 20 20 |.;.; | |
|00000ab0| 20 20 20 20 41 36 20 20 | 20 20 20 20 20 20 34 28 | A6 | 4(|
|00000ac0| 41 36 29 20 20 20 20 20 | 20 20 38 28 41 36 29 20 |A6) | 8(A6) |
|00000ad0| 31 30 28 41 36 29 20 20 | 20 20 20 20 31 34 28 41 |10(A6) | 14(A|
|00000ae0| 36 29 0d 3b 20 20 20 20 | 20 20 20 20 20 20 20 20 |6).; | |
|00000af0| 20 20 20 20 7c 20 20 20 | 20 20 20 20 20 20 20 20 | | | |
|00000b00| 7c 20 20 20 20 20 20 20 | 20 20 20 20 7c 20 20 20 || | | |
|00000b10| 20 20 7c 20 20 20 20 20 | 20 20 20 20 20 20 7c 0d | | | |.|
|00000b20| 3b 20 53 74 61 63 6b 20 | 67 72 6f 77 73 20 2d 2d |; Stack |grows --|
|00000b30| 2b 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2b 2d 2d 2d |+-------|----+---|
|00000b40| 2d 2d 2d 2d 2d 2d 2d 2d | 2b 2d 2d 2d 2d 2d 2b 2d |--------|+-----+-|
|00000b50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2b 2d 2d 2d 2d 2d |--------|--+-----|
|00000b60| 2d 2d 2d 2d 2d 2d 2b 2d | 2d 2d 0d 3b 20 3c 2d 2d |------+-|--.; <--|
|00000b70| 20 74 68 69 73 20 77 61 | 79 20 20 7c 20 20 4f 6c | this wa|y | Ol|
|00000b80| 64 20 20 41 36 20 20 7c | 20 52 74 72 6e 20 41 64 |d A6 || Rtrn Ad|
|00000b90| 72 73 20 7c 20 20 49 44 | 20 7c 20 20 52 65 73 54 |rs | ID| | ResT|
|00000ba0| 79 70 65 20 20 7c 20 52 | 74 72 6e 20 56 61 6c 75 |ype | R|trn Valu|
|00000bb0| 65 7c 0d 3b 20 20 20 20 | 20 20 20 20 20 20 20 20 |e|.; | |
|00000bc0| 20 2d 2d 2b 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2b | --+----|-------+|
|00000bd0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2b 2d 2d 2d 2d |--------|---+----|
|00000be0| 2d 2b 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2b 2d 2d |-+------|-----+--|
|00000bf0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2b 2d 2d 2d 0d 3b 0d |--------|-+---.;.|
|00000c00| 3b 20 4e 6f 74 65 3a 0d | 3b 20 20 20 20 57 65 20 |; Note:.|; We |
|00000c10| 67 6f 20 6f 75 74 20 6f | 66 20 6f 75 72 20 77 61 |go out o|f our wa|
|00000c20| 79 20 74 6f 20 6d 61 6b | 65 20 73 75 72 65 20 74 |y to mak|e sure t|
|00000c30| 68 61 74 20 74 68 65 20 | 27 63 69 63 6e 27 20 47 |hat the |'cicn' G|
|00000c40| 65 74 52 65 73 6f 75 72 | 63 65 20 63 61 6c 6c 20 |etResour|ce call |
|00000c50| 69 73 0d 3b 20 64 6f 6e | 65 20 62 65 66 6f 72 65 |is.; don|e before|
|00000c60| 20 74 68 65 20 27 49 43 | 4e 23 27 20 47 65 74 52 | the 'IC|N#' GetR|
|00000c70| 65 73 6f 75 72 63 65 20 | 63 61 6c 6c 2e 20 20 54 |esource |call. T|
|00000c80| 68 69 73 20 69 73 20 74 | 6f 20 74 72 79 20 61 6e |his is t|o try an|
|00000c90| 64 20 6d 61 6b 65 20 73 | 75 72 65 20 74 68 61 74 |d make s|ure that|
|00000ca0| 0d 3b 20 74 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |.; the v|alue of |
|00000cb0| 52 65 73 45 72 72 6f 72 | 20 6d 61 6b 65 73 20 73 |ResError| makes s|
|00000cc0| 65 6e 73 65 20 74 6f 20 | 74 68 65 20 61 70 70 6c |ense to |the appl|
|00000cd0| 69 63 61 74 69 6f 6e 2e | 0d 3b 0d 3b 3b 3b 3b 3b |ication.|.;.;;;;;|
|00000ce0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000cf0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000d00| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000d10| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000d20| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 0d 50 47 65 74 52 65 |;;;;;;;;|;.PGetRe|
|00000d30| 73 6f 75 72 63 65 3a 0d | 09 6c 69 6e 6b 09 61 36 |source:.|.link.a6|
|00000d40| 2c 23 30 0d 09 0d 3b 20 | 69 66 20 28 74 79 70 65 |,#0...; |if (type|
|00000d50| 20 69 73 20 6e 6f 74 20 | 49 43 4e 23 29 0d 3b 09 | is not |ICN#).;.|
|00000d60| 64 69 73 70 61 74 63 68 | 0d 09 63 6f 6d 70 61 72 |dispatch|..compar|
|00000d70| 65 5f 6c 20 31 30 28 61 | 36 29 2c 23 27 49 43 4e |e_l 10(a|6),#'ICN|
|00000d80| 23 27 0d 09 62 6e 65 09 | 50 47 52 51 75 69 63 6b |#'..bne.|PGRQuick|
|00000d90| 45 78 69 74 0d 0d 3b 20 | 53 65 74 75 70 20 61 34 |Exit..; |Setup a4|
|00000da0| 0d 09 6d 6f 76 65 6d 2e | 6c 09 64 30 2d 64 37 2f |..movem.|l.d0-d7/|
|00000db0| 61 30 2d 61 34 2c 2d 28 | 73 70 29 0d 09 6d 6f 76 |a0-a4,-(|sp)..mov|
|00000dc0| 65 2e 6c 09 61 34 73 61 | 76 65 28 70 63 29 2c 61 |e.l.a4sa|ve(pc),a|
|00000dd0| 34 0d 0d 3b 20 73 61 76 | 65 20 70 61 72 61 6d 65 |4..; sav|e parame|
|00000de0| 74 65 72 73 0d 09 6d 6f | 76 65 09 38 28 61 36 29 |ters..mo|ve.8(a6)|
|00000df0| 2c 20 52 65 73 49 44 28 | 61 34 29 0d 09 6d 6f 76 |, ResID(|a4)..mov|
|00000e00| 65 2e 6c 09 31 30 28 61 | 36 29 2c 20 52 65 73 54 |e.l.10(a|6), ResT|
|00000e10| 79 70 65 28 61 34 29 0d | 0d 3b 20 63 61 6c 6c 20 |ype(a4).|.; call |
|00000e20| 6f 72 69 67 69 6e 61 6c | 20 47 65 74 52 65 73 6f |original| GetReso|
|00000e30| 75 72 63 65 20 74 6f 20 | 6c 6f 61 64 20 69 6e 20 |urce to |load in |
|00000e40| 74 68 65 20 63 6f 72 72 | 65 73 70 6f 6e 64 69 6e |the corr|espondin|
|00000e50| 67 20 27 63 69 63 6e 27 | 0d 09 63 6c 72 2e 6c 09 |g 'cicn'|..clr.l.|
|00000e60| 2d 28 73 70 29 09 09 3b | 20 73 70 61 63 65 20 66 |-(sp)..;| space f|
|00000e70| 6f 72 20 72 65 74 75 72 | 6e 0d 09 6d 6f 76 65 2e |or retur|n..move.|
|00000e80| 6c 09 23 27 63 69 63 6e | 27 2c 2d 28 73 70 29 0d |l.#'cicn|',-(sp).|
|00000e90| 09 6d 6f 76 65 09 52 65 | 73 49 44 28 61 34 29 2c |.move.Re|sID(a4),|
|00000ea0| 2d 28 73 70 29 0d 09 6d | 6f 76 65 2e 6c 09 50 47 |-(sp)..m|ove.l.PG|
|00000eb0| 52 53 61 76 65 28 70 63 | 29 2c 61 30 0d 09 6a 73 |RSave(pc|),a0..js|
|00000ec0| 72 09 28 61 30 29 0d 09 | 6d 6f 76 65 2e 6c 09 28 |r.(a0)..|move.l.(|
|00000ed0| 73 70 29 2b 2c 61 30 09 | 3b 20 67 65 74 20 68 61 |sp)+,a0.|; get ha|
|00000ee0| 6e 64 6c 65 0d 0d 3b 20 | 69 66 20 65 72 72 6f 72 |ndle..; |if error|
|00000ef0| 0d 3b 09 72 65 73 74 6f | 72 65 20 70 61 72 61 6d |.;.resto|re param|
|00000f00| 65 74 65 72 73 0d 3b 09 | 64 69 73 70 61 74 63 68 |eters.;.|dispatch|
|00000f10| 0d 09 6d 6f 76 65 2e 6c | 09 61 30 2c 64 30 0d 09 |..move.l|.a0,d0..|
|00000f20| 74 73 74 2e 6c 09 64 30 | 0d 09 62 65 71 09 50 47 |tst.l.d0|..beq.PG|
|00000f30| 52 45 72 72 31 09 09 3b | 20 4e 49 4c 20 68 61 6e |RErr1..;| NIL han|
|00000f40| 64 6c 65 0d 09 74 73 74 | 2e 6c 09 28 61 30 29 0d |dle..tst|.l.(a0).|
|00000f50| 09 62 65 71 09 50 47 52 | 45 72 72 31 09 09 3b 20 |.beq.PGR|Err1..; |
|00000f60| 48 61 6e 64 6c 65 20 70 | 6f 69 6e 74 73 20 74 6f |Handle p|oints to|
|00000f70| 20 4e 49 4c 20 70 6f 69 | 6e 74 65 72 0d 0d 09 6d | NIL poi|nter...m|
|00000f80| 6f 76 65 2e 6c 09 61 30 | 2c 63 69 63 6e 48 61 6e |ove.l.a0|,cicnHan|
|00000f90| 64 6c 65 28 61 34 29 09 | 3b 20 53 61 76 65 20 69 |dle(a4).|; Save i|
|00000fa0| 74 20 66 6f 72 20 6c 61 | 74 65 72 20 77 68 65 6e |t for la|ter when|
|00000fb0| 20 77 65 20 68 61 76 65 | 20 74 6f 0d 09 09 09 09 | we have| to.....|
|00000fc0| 09 3b 20 64 6f 20 61 20 | 52 65 6c 65 61 73 65 52 |.; do a |ReleaseR|
|00000fd0| 65 73 6f 75 72 63 65 20 | 6f 6e 20 69 74 2e 0d 0d |esource |on it...|
|00000fe0| 3b 20 69 66 20 6e 6f 74 | 20 65 6e 6f 75 67 68 20 |; if not| enough |
|00000ff0| 72 6f 6f 6d 20 6c 65 66 | 74 20 69 6e 20 6f 75 72 |room lef|t in our|
|00001000| 20 73 74 6f 72 61 67 65 | 20 61 72 65 61 2c 20 64 | storage| area, d|
|00001010| 69 73 70 61 74 63 68 0d | 3b 0d 09 5f 47 65 74 48 |ispatch.|;.._GetH|
|00001020| 61 6e 64 6c 65 53 69 7a | 65 0d 09 74 73 74 2e 6c |andleSiz|e..tst.l|
|00001030| 09 64 30 0d 09 62 65 71 | 09 50 47 52 45 72 72 31 |.d0..beq|.PGRErr1|
|00001040| 62 09 09 3b 20 47 65 74 | 48 61 6e 64 6c 65 53 69 |b..; Get|HandleSi|
|00001050| 7a 65 20 72 65 74 75 72 | 6e 65 64 20 65 72 72 6f |ze retur|ned erro|
|00001060| 72 0d 0d 09 6d 6f 76 65 | 2e 6c 09 64 30 2c 63 69 |r...move|.l.d0,ci|
|00001070| 63 6e 53 69 7a 65 28 61 | 34 29 09 09 3b 20 73 61 |cnSize(a|4)..; sa|
|00001080| 76 65 20 74 68 69 73 20 | 66 6f 72 20 6c 61 74 65 |ve this |for late|
|00001090| 72 2e 0d 09 0d 09 6d 6f | 76 65 2e 6c 09 54 61 69 |r.....mo|ve.l.Tai|
|000010a0| 6c 50 6f 69 6e 74 65 72 | 28 61 34 29 2c 61 32 09 |lPointer|(a4),a2.|
|000010b0| 3b 20 67 65 74 20 63 75 | 72 72 65 6e 74 20 74 61 |; get cu|rrent ta|
|000010c0| 69 6c 20 70 6f 69 6e 74 | 65 72 0d 09 61 64 64 61 |il point|er..adda|
|000010d0| 2e 6c 09 64 30 2c 61 32 | 09 09 09 3b 20 61 64 64 |.l.d0,a2|...; add|
|000010e0| 20 6c 65 6e 67 74 68 20 | 6f 66 20 27 63 69 63 6e | length |of 'cicn|
|000010f0| 27 0d 09 61 64 64 61 2e | 6c 09 23 43 49 43 4e 5f |'..adda.|l.#CICN_|
|00001100| 4f 46 46 53 45 54 2c 61 | 32 09 09 3b 20 61 6e 64 |OFFSET,a|2..; and|
|00001110| 20 6c 65 6e 67 74 68 20 | 6f 66 20 6f 74 68 65 72 | length |of other|
|00001120| 20 64 61 74 61 0d 09 61 | 64 64 61 2e 6c 09 23 50 | data..a|dda.l.#P|
|00001130| 53 5f 50 41 44 44 49 4e | 47 2c 61 32 09 09 3b 20 |S_PADDIN|G,a2..; |
|00001140| 66 75 64 67 65 20 74 6f | 20 62 65 20 73 61 66 65 |fudge to| be safe|
|00001150| 0d 09 6d 6f 76 65 2e 6c | 09 45 6e 64 4f 66 53 74 |..move.l|.EndOfSt|
|00001160| 6f 72 61 67 65 28 61 34 | 29 2c 61 33 0d 09 63 6f |orage(a4|),a3..co|
|00001170| 6d 70 61 72 65 5f 6c 20 | 61 32 2c 61 33 0d 09 62 |mpare_l |a2,a3..b|
|00001180| 67 65 09 50 47 52 45 72 | 72 31 62 09 09 3b 20 6e |ge.PGREr|r1b..; n|
|00001190| 6f 74 20 65 6e 6f 75 67 | 68 20 72 6f 6f 6d 20 2d |ot enoug|h room -|
|000011a0| 2d 20 62 6c 6f 77 20 69 | 74 20 6f 66 66 21 0d 0d |- blow i|t off!..|
|000011b0| 3b 20 73 61 76 65 20 22 | 63 69 63 6e 22 20 69 6e |; save "|cicn" in|
|000011c0| 20 6f 75 72 20 69 63 6f | 6e 2d 73 74 6f 72 61 67 | our ico|n-storag|
|000011d0| 65 20 61 72 65 61 0d 3b | 0d 09 6d 6f 76 65 2e 6c |e area.;|..move.l|
|000011e0| 09 63 69 63 6e 48 61 6e | 64 6c 65 28 61 34 29 2c |.cicnHan|dle(a4),|
|000011f0| 61 30 09 3b 20 67 65 74 | 20 68 61 6e 64 6c 65 20 |a0.; get| handle |
|00001200| 74 6f 20 27 63 69 63 6e | 27 20 61 67 61 69 6e 0d |to 'cicn|' again.|
|00001210| 09 6d 6f 76 65 2e 6c 09 | 28 61 30 29 2c 61 30 09 |.move.l.|(a0),a0.|
|00001220| 09 09 3b 20 67 65 74 20 | 70 6f 69 6e 74 65 72 20 |..; get |pointer |
|00001230| 74 6f 20 63 6f 6c 6f 72 | 20 69 63 6f 6e 0d 09 6d |to color| icon..m|
|00001240| 6f 76 65 2e 6c 09 54 61 | 69 6c 50 6f 69 6e 74 65 |ove.l.Ta|ilPointe|
|00001250| 72 28 61 34 29 2c 61 31 | 09 3b 20 47 65 74 20 74 |r(a4),a1|.; Get t|
|00001260| 61 69 6c 20 70 6f 69 6e | 74 65 72 20 69 6e 20 61 |ail poin|ter in a|
|00001270| 31 0d 09 61 64 64 61 2e | 6c 09 23 43 49 43 4e 5f |1..adda.|l.#CICN_|
|00001280| 4f 46 46 53 45 54 2c 61 | 31 09 09 3b 20 6f 66 66 |OFFSET,a|1..; off|
|00001290| 73 65 74 20 66 6f 72 20 | 27 63 69 63 6e 27 0d 09 |set for |'cicn'..|
|000012a0| 3b 09 09 09 09 3b 20 6c | 65 6e 67 74 68 20 73 74 |;....; l|ength st|
|000012b0| 69 6c 6c 20 69 6e 20 64 | 30 0d 09 5f 42 6c 6f 63 |ill in d|0.._Bloc|
|000012c0| 6b 4d 6f 76 65 0d 09 74 | 73 74 09 64 30 0d 09 62 |kMove..t|st.d0..b|
|000012d0| 6e 65 09 50 47 52 45 72 | 72 31 62 0d 0d 3b 20 63 |ne.PGREr|r1b..; c|
|000012e0| 61 6c 6c 20 6f 72 69 67 | 69 6e 61 6c 20 47 65 74 |all orig|inal Get|
|000012f0| 52 65 73 6f 75 72 63 65 | 20 74 6f 20 67 65 74 20 |Resource| to get |
|00001300| 74 68 65 20 61 63 74 75 | 61 6c 20 69 63 6f 6e 0d |the actu|al icon.|
|00001310| 3b 0d 09 63 6c 72 2e 6c | 09 2d 28 73 70 29 09 09 |;..clr.l|.-(sp)..|
|00001320| 09 3b 20 73 70 61 63 65 | 20 66 6f 72 20 72 65 74 |.; space| for ret|
|00001330| 75 72 6e 0d 09 6d 6f 76 | 65 2e 6c 09 52 65 73 54 |urn..mov|e.l.ResT|
|00001340| 79 70 65 28 61 34 29 2c | 2d 28 73 70 29 0d 09 6d |ype(a4),|-(sp)..m|
|00001350| 6f 76 65 09 52 65 73 49 | 44 28 61 34 29 2c 2d 28 |ove.ResI|D(a4),-(|
|00001360| 73 70 29 0d 09 6d 6f 76 | 65 2e 6c 09 50 47 52 53 |sp)..mov|e.l.PGRS|
|00001370| 61 76 65 28 70 63 29 2c | 61 30 0d 09 6a 73 72 09 |ave(pc),|a0..jsr.|
|00001380| 28 61 30 29 0d 09 6d 6f | 76 65 2e 6c 09 28 73 70 |(a0)..mo|ve.l.(sp|
|00001390| 29 2b 2c 61 30 09 3b 20 | 67 65 74 20 68 61 6e 64 |)+,a0.; |get hand|
|000013a0| 6c 65 0d 09 6c 65 61 09 | 69 63 6e 48 61 6e 64 6c |le..lea.|icnHandl|
|000013b0| 65 28 61 34 29 2c 61 31 | 0d 09 6d 6f 76 65 2e 6c |e(a4),a1|..move.l|
|000013c0| 09 61 30 2c 28 61 31 29 | 0d 0d 09 6d 6f 76 65 2e |.a0,(a1)|...move.|
|000013d0| 6c 09 61 30 2c 64 30 09 | 09 3b 20 74 65 73 74 20 |l.a0,d0.|.; test |
|000013e0| 66 6f 72 20 65 72 72 6f | 72 2e 0d 09 74 73 74 2e |for erro|r...tst.|
|000013f0| 6c 09 64 30 0d 09 62 65 | 71 09 50 47 52 45 72 72 |l.d0..be|q.PGRErr|
|00001400| 32 09 09 3b 20 4e 49 4c | 20 68 61 6e 64 6c 65 2e |2..; NIL| handle.|
|00001410| 0d 09 74 73 74 2e 6c 09 | 28 61 30 29 0d 09 62 65 |..tst.l.|(a0)..be|
|00001420| 71 09 50 47 52 45 72 72 | 32 09 09 3b 20 48 61 6e |q.PGRErr|2..; Han|
|00001430| 64 6c 65 20 70 6f 69 6e | 74 73 20 74 6f 20 4e 49 |dle poin|ts to NI|
|00001440| 4c 2e 0d 0d 3b 20 73 65 | 61 72 63 68 20 66 6f 72 |L...; se|arch for|
|00001450| 20 74 68 69 73 20 49 43 | 4e 23 20 2d 20 69 66 20 | this IC|N# - if |
|00001460| 61 6c 72 65 61 64 79 20 | 69 6e 20 6f 75 72 20 74 |already |in our t|
|00001470| 61 62 6c 65 2c 20 74 68 | 65 6e 0d 3b 09 70 6c 61 |able, th|en.;.pla|
|00001480| 63 65 20 72 65 74 75 72 | 6e 20 76 61 6c 75 65 20 |ce retur|n value |
|00001490| 6f 6e 20 73 74 61 63 6b | 0d 3b 09 72 65 74 75 72 |on stack|.;.retur|
|000014a0| 6e 20 74 6f 20 6f 72 69 | 67 69 6e 61 6c 20 72 65 |n to ori|ginal re|
|000014b0| 74 75 72 6e 20 61 64 64 | 72 65 73 73 0d 09 63 6c |turn add|ress..cl|
|000014c0| 72 2e 6c 09 2d 28 73 70 | 29 09 09 3b 20 73 70 61 |r.l.-(sp|)..; spa|
|000014d0| 63 65 20 66 6f 72 20 72 | 65 74 75 72 6e 20 76 61 |ce for r|eturn va|
|000014e0| 6c 75 65 0d 09 6d 6f 76 | 65 2e 6c 09 28 61 30 29 |lue..mov|e.l.(a0)|
|000014f0| 2c 61 30 09 09 3b 20 67 | 65 74 20 27 49 43 4e 23 |,a0..; g|et 'ICN#|
|00001500| 27 20 70 6f 69 6e 74 65 | 72 0d 09 6d 6f 76 65 2e |' pointe|r..move.|
|00001510| 6c 09 61 30 2c 2d 28 73 | 70 29 09 3b 20 70 75 73 |l.a0,-(s|p).; pus|
|00001520| 68 20 69 74 0d 09 62 73 | 72 09 50 47 52 4c 6f 6f |h it..bs|r.PGRLoo|
|00001530| 6b 75 70 09 3b 20 73 65 | 61 72 63 68 0d 09 6d 6f |kup.; se|arch..mo|
|00001540| 76 65 2e 6c 09 28 73 70 | 29 2b 2c 61 30 09 3b 20 |ve.l.(sp|)+,a0.; |
|00001550| 67 65 74 20 72 65 73 75 | 6c 74 0d 09 6d 6f 76 65 |get resu|lt..move|
|00001560| 2e 6c 09 61 30 2c 64 30 | 09 09 3b 20 63 68 65 63 |.l.a0,d0|..; chec|
|00001570| 6b 20 66 6f 72 20 4e 49 | 4c 0d 09 74 73 74 2e 6c |k for NI|L..tst.l|
|00001580| 09 64 30 0d 09 62 6e 65 | 09 50 47 52 45 72 72 32 |.d0..bne|.PGRErr2|
|00001590| 09 09 3b 20 61 6c 72 65 | 61 64 79 20 69 6e 20 74 |..; alre|ady in t|
|000015a0| 61 62 6c 65 20 2d 2d 20 | 72 65 74 75 72 6e 20 72 |able -- |return r|
|000015b0| 69 67 68 74 20 61 77 61 | 79 2e 0d 0d 3b 20 73 61 |ight awa|y...; sa|
|000015c0| 76 65 20 49 43 4e 23 20 | 69 6e 20 6f 75 72 20 73 |ve ICN# |in our s|
|000015d0| 74 6f 72 61 67 65 20 61 | 72 65 61 0d 09 6d 6f 76 |torage a|rea..mov|
|000015e0| 65 2e 6c 09 69 63 6e 48 | 61 6e 64 6c 65 28 61 34 |e.l.icnH|andle(a4|
|000015f0| 29 2c 61 30 09 3b 20 67 | 65 74 20 27 49 43 4e 23 |),a0.; g|et 'ICN#|
|00001600| 27 20 68 61 6e 64 6c 65 | 20 62 61 63 6b 0d 09 6d |' handle| back..m|
|00001610| 6f 76 65 2e 6c 09 28 61 | 30 29 2c 61 30 09 09 09 |ove.l.(a|0),a0...|
|00001620| 3b 20 67 65 74 20 70 6f | 69 6e 74 65 72 0d 09 6d |; get po|inter..m|
|00001630| 6f 76 65 2e 6c 09 54 61 | 69 6c 50 6f 69 6e 74 65 |ove.l.Ta|ilPointe|
|00001640| 72 28 61 34 29 2c 61 31 | 0d 09 61 64 64 61 2e 6c |r(a4),a1|..adda.l|
|00001650| 09 23 49 43 4e 5f 4f 46 | 46 53 45 54 2c 61 31 0d |.#ICN_OF|FSET,a1.|
|00001660| 09 6d 6f 76 65 2e 6c 09 | 23 49 43 4e 5f 4c 45 4e |.move.l.|#ICN_LEN|
|00001670| 47 54 48 2c 64 30 0d 09 | 5f 42 6c 6f 63 6b 4d 6f |GTH,d0..|_BlockMo|
|00001680| 76 65 0d 09 74 73 74 09 | 64 30 0d 09 62 6e 65 09 |ve..tst.|d0..bne.|
|00001690| 50 47 52 45 72 72 32 0d | 0d 3b 20 75 70 64 61 74 |PGRErr2.|.; updat|
|000016a0| 65 20 6e 65 78 74 20 61 | 6e 64 20 74 61 69 6c 20 |e next a|nd tail |
|000016b0| 70 6f 69 6e 74 65 72 73 | 0d 09 6d 6f 76 65 2e 6c |pointers|..move.l|
|000016c0| 09 54 61 69 6c 50 6f 69 | 6e 74 65 72 28 61 34 29 |.TailPoi|nter(a4)|
|000016d0| 2c 61 31 0d 09 6d 6f 76 | 65 2e 6c 09 61 31 2c 61 |,a1..mov|e.l.a1,a|
|000016e0| 32 0d 09 61 64 64 61 2e | 6c 09 23 43 49 43 4e 5f |2..adda.|l.#CICN_|
|000016f0| 4f 46 46 53 45 54 2c 61 | 32 09 09 3b 20 61 64 64 |OFFSET,a|2..; add|
|00001700| 20 6c 65 6e 67 74 68 20 | 6f 66 20 70 6f 69 6e 74 | length |of point|
|00001710| 65 72 20 61 6e 64 20 27 | 49 43 4e 23 27 0d 09 6d |er and '|ICN#'..m|
|00001720| 6f 76 65 2e 6c 09 63 69 | 63 6e 53 69 7a 65 28 61 |ove.l.ci|cnSize(a|
|00001730| 34 29 2c 64 30 0d 09 61 | 64 64 71 2e 6c 09 23 31 |4),d0..a|ddq.l.#1|
|00001740| 2c 64 30 09 09 09 3b 20 | 72 6f 75 6e 64 20 75 70 |,d0...; |round up|
|00001750| 20 74 6f 20 61 6e 20 65 | 76 65 6e 20 6e 75 6d 62 | to an e|ven numb|
|00001760| 65 72 20 28 69 66 0d 09 | 61 6e 64 2e 6c 09 23 24 |er (if..|and.l.#$|
|00001770| 66 66 66 66 66 66 66 65 | 2c 64 30 09 09 3b 20 20 |fffffffe|,d0..; |
|00001780| 20 6e 65 63 65 73 73 61 | 72 79 29 0d 09 61 64 64 | necessa|ry)..add|
|00001790| 61 2e 6c 09 64 30 2c 61 | 32 09 09 09 3b 20 61 64 |a.l.d0,a|2...; ad|
|000017a0| 64 20 6c 65 6e 67 74 68 | 20 6f 66 20 27 63 69 63 |d length| of 'cic|
|000017b0| 6e 27 0d 09 0d 09 6d 6f | 76 65 2e 6c 09 61 32 2c |n'....mo|ve.l.a2,|
|000017c0| 28 61 31 29 09 09 09 3b | 20 66 69 6c 6c 20 69 6e |(a1)...;| fill in|
|000017d0| 20 6e 65 78 74 20 66 69 | 65 6c 64 20 6f 66 20 74 | next fi|eld of t|
|000017e0| 68 65 20 72 65 63 6f 72 | 64 0d 09 09 09 09 09 3b |he recor|d......;|
|000017f0| 20 77 65 20 6a 75 73 74 | 20 63 72 65 61 74 65 64 | we just| created|
|00001800| 2e 0d 09 6d 6f 76 65 2e | 6c 09 61 32 2c 54 61 69 |...move.|l.a2,Tai|
|00001810| 6c 50 6f 69 6e 74 65 72 | 28 61 34 29 09 3b 20 74 |lPointer|(a4).; t|
|00001820| 68 69 73 20 69 73 20 74 | 68 65 20 6e 65 77 20 74 |his is t|he new t|
|00001830| 61 69 6c 70 6f 69 6e 74 | 65 72 2e 0d 09 63 6c 72 |ailpoint|er...clr|
|00001840| 2e 6c 09 28 61 32 29 09 | 09 09 3b 20 4e 49 4c 20 |.l.(a2).|..; NIL |
|00001850| 6f 75 74 20 74 68 65 20 | 6e 65 78 74 20 72 65 63 |out the |next rec|
|00001860| 6f 72 64 27 73 20 6e 65 | 78 74 20 66 69 65 6c 64 |ord's ne|xt field|
|00001870| 2e 0d 0d 3b 20 57 65 20 | 68 61 76 65 20 74 6f 20 |...; We |have to |
|00001880| 74 6f 20 72 65 74 75 72 | 6e 20 74 6f 20 74 68 65 |to retur|n to the|
|00001890| 20 63 61 6c 6c 65 72 20 | 77 69 74 68 6f 75 74 20 | caller |without |
|000018a0| 64 69 73 70 61 74 63 68 | 69 6e 67 20 74 68 72 6f |dispatch|ing thro|
|000018b0| 75 67 68 20 47 65 74 52 | 65 73 6f 75 72 63 65 2e |ugh GetR|esource.|
|000018c0| 0d 3b 20 57 65 20 64 6f | 20 74 68 69 73 20 62 79 |.; We do| this by|
|000018d0| 20 63 6f 70 79 69 6e 67 | 20 74 68 65 20 72 65 74 | copying| the ret|
|000018e0| 75 72 6e 20 61 64 64 72 | 65 73 73 20 74 6f 20 61 |urn addr|ess to a|
|000018f0| 20 64 69 66 66 65 72 65 | 6e 74 20 70 6c 61 63 65 | differe|nt place|
|00001900| 20 6f 6e 20 74 68 65 20 | 73 74 61 63 6b 0d 3b 20 | on the |stack.; |
|00001910| 61 6e 64 20 6f 66 66 73 | 65 74 74 69 6e 67 20 74 |and offs|etting t|
|00001920| 68 65 20 53 50 20 62 79 | 20 2b 36 20 74 6f 20 64 |he SP by| +6 to d|
|00001930| 69 73 63 61 72 64 20 74 | 68 65 20 75 6e 77 61 6e |iscard t|he unwan|
|00001940| 74 65 64 20 70 61 72 61 | 6d 65 74 65 72 73 2e 0d |ted para|meters..|
|00001950| 3b 0d 50 47 52 45 72 72 | 32 3a 0d 09 6d 6f 76 65 |;.PGRErr|2:..move|
|00001960| 2e 6c 09 63 69 63 6e 48 | 61 6e 64 6c 65 28 61 34 |.l.cicnH|andle(a4|
|00001970| 29 2c 2d 28 73 70 29 09 | 3b 20 52 65 6c 65 61 73 |),-(sp).|; Releas|
|00001980| 65 20 74 68 65 20 27 63 | 69 63 6e 27 20 77 65 20 |e the 'c|icn' we |
|00001990| 6c 6f 61 64 65 64 2e 0d | 09 5f 52 65 6c 65 61 73 |loaded..|._Releas|
|000019a0| 65 52 65 73 6f 75 72 63 | 65 0d 09 6d 6f 76 65 2e |eResourc|e..move.|
|000019b0| 6c 09 69 63 6e 48 61 6e | 64 6c 65 28 61 34 29 2c |l.icnHan|dle(a4),|
|000019c0| 31 34 28 61 36 29 09 3b | 20 50 6c 61 63 65 20 72 |14(a6).;| Place r|
|000019d0| 65 74 75 72 6e 20 76 61 | 6c 75 65 20 6f 6e 20 73 |eturn va|lue on s|
|000019e0| 74 61 63 6b 20 69 6e 0d | 09 09 09 09 09 3b 20 63 |tack in.|.....; c|
|000019f0| 6f 72 72 65 63 74 20 70 | 6c 61 63 65 2e 0d 09 6d |orrect p|lace...m|
|00001a00| 6f 76 65 2e 6c 09 34 28 | 61 36 29 2c 31 30 28 61 |ove.l.4(|a6),10(a|
|00001a10| 36 29 09 3b 20 63 6f 70 | 79 20 74 68 65 69 72 20 |6).; cop|y their |
|00001a20| 72 65 74 75 72 6e 20 61 | 64 64 72 65 73 73 20 74 |return a|ddress t|
|00001a30| 6f 20 61 20 70 6f 73 69 | 74 69 6f 6e 20 72 69 67 |o a posi|tion rig|
|00001a40| 68 74 0d 09 09 09 09 3b | 20 62 65 6c 6f 77 20 74 |ht.....;| below t|
|00001a50| 68 69 73 20 72 65 74 75 | 72 6e 20 76 61 6c 75 65 |his retu|rn value|
|00001a60| 2e 0d 09 6d 6f 76 65 6d | 2e 6c 09 28 73 70 29 2b |...movem|.l.(sp)+|
|00001a70| 2c 64 30 2d 64 37 2f 61 | 30 2d 61 34 20 3b 20 72 |,d0-d7/a|0-a4 ; r|
|00001a80| 65 73 74 6f 72 65 20 72 | 65 67 73 0d 09 75 6e 6c |estore r|egs..unl|
|00001a90| 6b 09 61 36 09 09 3b 20 | 72 65 73 74 6f 72 65 20 |k.a6..; |restore |
|00001aa0| 61 36 0d 09 6c 65 61 09 | 36 28 73 70 29 2c 73 70 |a6..lea.|6(sp),sp|
|00001ab0| 09 3b 20 64 69 73 63 61 | 72 64 20 36 20 62 79 74 |.; disca|rd 6 byt|
|00001ac0| 65 73 20 77 6f 72 74 68 | 20 6f 66 20 73 74 61 63 |es worth| of stac|
|00001ad0| 6b 20 28 63 6f 72 72 65 | 73 70 6f 6e 64 73 0d 09 |k (corre|sponds..|
|00001ae0| 09 09 09 3b 20 74 6f 20 | 74 68 65 20 36 20 62 79 |...; to |the 6 by|
|00001af0| 74 65 73 20 6f 66 20 70 | 61 72 61 6d 65 74 65 72 |tes of p|arameter|
|00001b00| 73 20 74 68 61 74 20 6f | 75 72 0d 09 09 09 09 3b |s that o|ur.....;|
|00001b10| 20 6f 72 69 67 69 6e 61 | 6c 20 63 61 6c 6c 20 68 | origina|l call h|
|00001b20| 61 64 2e 29 0d 09 72 74 | 73 09 09 09 3b 20 72 65 |ad.)..rt|s...; re|
|00001b30| 74 75 72 6e 20 74 6f 20 | 6f 72 69 67 69 6e 61 6c |turn to |original|
|00001b40| 20 72 65 74 75 72 6e 20 | 61 64 64 72 65 73 73 2c | return |address,|
|00001b50| 20 6c 65 61 76 69 6e 67 | 0d 09 09 09 09 3b 20 72 | leaving|.....; r|
|00001b60| 65 74 75 72 6e 20 76 61 | 6c 75 65 20 69 6e 20 70 |eturn va|lue in p|
|00001b70| 6c 61 63 65 2e 0d 0d 0d | 3b 20 54 68 65 73 65 20 |lace....|; These |
|00001b80| 74 68 72 65 65 20 65 78 | 69 74 20 70 6f 69 6e 74 |three ex|it point|
|00001b90| 73 20 64 69 73 70 61 74 | 63 68 20 74 6f 20 74 68 |s dispat|ch to th|
|00001ba0| 65 20 6f 72 69 67 69 6e | 61 6c 20 47 65 74 52 65 |e origin|al GetRe|
|00001bb0| 73 6f 75 72 63 65 20 62 | 79 20 70 75 73 68 69 6e |source b|y pushin|
|00001bc0| 67 20 74 68 65 0d 3b 20 | 74 72 61 70 27 73 20 6f |g the.; |trap's o|
|00001bd0| 72 69 67 69 6e 61 6c 20 | 61 64 64 72 65 73 73 20 |riginal |address |
|00001be0| 6f 6e 74 6f 20 74 68 65 | 20 73 74 61 63 6b 20 61 |onto the| stack a|
|00001bf0| 6e 64 20 64 6f 69 6e 67 | 20 61 6e 20 52 54 53 2e |nd doing| an RTS.|
|00001c00| 20 20 54 68 69 73 20 6d | 61 6b 65 73 20 74 68 65 | This m|akes the|
|00001c10| 0d 3b 20 50 43 20 6a 75 | 6d 70 20 74 6f 20 74 68 |.; PC ju|mp to th|
|00001c20| 65 20 62 65 67 69 6e 6e | 69 6e 67 20 6f 66 20 74 |e beginn|ing of t|
|00001c30| 68 65 20 6f 72 69 67 69 | 6e 61 6c 20 70 61 74 63 |he origi|nal patc|
|00001c40| 68 20 77 69 74 68 20 61 | 6c 6c 20 6f 66 20 74 68 |h with a|ll of th|
|00001c50| 65 20 70 61 72 61 6d 65 | 74 65 72 73 2c 0d 3b 20 |e parame|ters,.; |
|00001c60| 65 74 63 2e 20 73 65 74 | 20 75 70 20 6a 75 73 74 |etc. set| up just|
|00001c70| 20 74 68 65 20 77 61 79 | 20 74 68 65 79 20 77 65 | the way| they we|
|00001c80| 72 65 20 77 68 65 6e 20 | 77 65 20 77 65 72 65 20 |re when |we were |
|00001c90| 63 61 6c 6c 65 64 2e 0d | 3b 0d 50 47 52 51 75 69 |called..|;.PGRQui|
|00001ca0| 63 6b 45 78 69 74 3a 0d | 09 75 6e 6c 6b 09 61 36 |ckExit:.|.unlk.a6|
|00001cb0| 0d 09 6d 6f 76 65 2e 6c | 09 50 47 52 53 61 76 65 |..move.l|.PGRSave|
|00001cc0| 2c 20 2d 28 73 70 29 0d | 09 72 74 73 0d 0d 50 47 |, -(sp).|.rts..PG|
|00001cd0| 52 45 72 72 31 62 3a 0d | 09 6d 6f 76 65 2e 6c 09 |RErr1b:.|.move.l.|
|00001ce0| 63 69 63 6e 48 61 6e 64 | 6c 65 28 61 34 29 2c 2d |cicnHand|le(a4),-|
|00001cf0| 28 73 70 29 09 3b 20 52 | 65 6c 65 61 73 65 20 74 |(sp).; R|elease t|
|00001d00| 68 65 20 27 63 69 63 6e | 27 20 77 65 20 6c 6f 61 |he 'cicn|' we loa|
|00001d10| 64 65 64 2e 0d 09 5f 52 | 65 6c 65 61 73 65 52 65 |ded..._R|eleaseRe|
|00001d20| 73 6f 75 72 63 65 0d 0d | 09 6c 65 61 09 69 70 4d |source..|.lea.ipM|
|00001d30| 65 6d 46 75 6c 6c 28 70 | 63 29 2c 61 30 09 3b 20 |emFull(p|c),a0.; |
|00001d40| 53 65 74 20 72 61 6d 2d | 66 75 6c 6c 20 66 6c 61 |Set ram-|full fla|
|00001d50| 67 20 73 6f 20 69 6e 73 | 74 61 6c 6c 20 63 6f 64 |g so ins|tall cod|
|00001d60| 65 0d 09 6d 6f 76 65 09 | 23 31 2c 28 61 30 29 09 |e..move.|#1,(a0).|
|00001d70| 09 09 3b 20 63 61 6e 20 | 73 65 65 20 69 74 2e 0d |..; can |see it..|
|00001d80| 50 47 52 45 72 72 31 3a | 0d 09 6d 6f 76 65 6d 2e |PGRErr1:|..movem.|
|00001d90| 6c 09 28 73 70 29 2b 2c | 64 30 2d 64 37 2f 61 30 |l.(sp)+,|d0-d7/a0|
|00001da0| 2d 61 34 0d 09 75 6e 6c | 6b 09 61 36 0d 09 6d 6f |-a4..unl|k.a6..mo|
|00001db0| 76 65 2e 6c 09 50 47 52 | 53 61 76 65 2c 20 2d 28 |ve.l.PGR|Save, -(|
|00001dc0| 73 70 29 0d 09 72 74 73 | 0d 0d 3b 3b 3b 3b 3b 3b |sp)..rts|..;;;;;;|
|00001dd0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001de0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001df0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001e00| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001e10| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 0d 3b 0d 3b 20 20 50 |;;;;;;;;|;.;.; P|
|00001e20| 47 52 4c 2e 4c 6f 6f 6b | 75 70 09 09 2d 20 46 69 |GRL.Look|up..- Fi|
|00001e30| 6e 64 20 49 43 4f 4e 20 | 28 69 66 20 70 72 65 73 |nd ICON |(if pres|
|00001e40| 65 6e 74 29 20 69 6e 20 | 6f 75 72 20 74 61 62 6c |ent) in |our tabl|
|00001e50| 65 0d 3b 0d 3b 20 20 20 | 20 54 68 69 73 20 72 6f |e.;.; | This ro|
|00001e60| 75 74 69 6e 65 20 6c 6f | 6f 6b 73 20 74 68 72 6f |utine lo|oks thro|
|00001e70| 75 67 68 20 6f 75 72 20 | 69 63 6f 6e 20 73 74 6f |ugh our |icon sto|
|00001e80| 72 61 67 65 20 72 65 63 | 6f 72 64 20 66 6f 72 20 |rage rec|ord for |
|00001e90| 74 68 65 20 67 69 76 65 | 6e 20 69 63 6f 6e 3b 20 |the give|n icon; |
|00001ea0| 69 66 0d 3b 20 61 20 6d | 61 74 63 68 20 69 73 20 |if.; a m|atch is |
|00001eb0| 66 6f 75 6e 64 20 69 74 | 20 72 65 74 75 72 6e 73 |found it| returns|
|00001ec0| 20 61 20 70 6f 69 6e 74 | 65 72 20 74 6f 20 74 68 | a point|er to th|
|00001ed0| 65 20 49 43 4f 4e 2f 63 | 69 63 6e 20 72 65 63 6f |e ICON/c|icn reco|
|00001ee0| 72 64 2e 20 20 4f 74 68 | 65 72 77 69 73 65 0d 3b |rd. Oth|erwise.;|
|00001ef0| 20 72 65 74 75 72 6e 73 | 20 4e 49 4c 2e 0d 3b 0d | returns| NIL..;.|
|00001f00| 3b 20 20 20 20 49 74 20 | 69 73 20 73 74 61 63 6b |; It |is stack|
|00001f10| 2d 62 61 73 65 64 3b 20 | 69 74 73 20 70 72 6f 74 |-based; |its prot|
|00001f20| 6f 74 79 70 65 20 69 73 | 3a 0d 3b 0d 3b 20 70 61 |otype is|:.;.; pa|
|00001f30| 73 63 61 6c 20 6c 6f 6e | 67 77 6f 72 64 20 50 47 |scal lon|gword PG|
|00001f40| 52 4c 4c 6f 6f 6b 75 70 | 28 50 6f 69 6e 74 65 72 |RLLookup|(Pointer|
|00001f50| 20 69 68 29 3b 0d 3b 0d | 50 47 52 4c 6f 6f 6b 55 | ih);.;.|PGRLookU|
|00001f60| 70 3a 0d 09 53 54 41 43 | 4b 5f 44 45 43 4c 41 52 |p:..STAC|K_DECLAR|
|00001f70| 45 0d 09 4c 4f 4e 47 5f | 50 41 52 41 4d 09 69 68 |E..LONG_|PARAM.ih|
|00001f80| 09 3b 20 68 61 6e 64 6c | 65 20 74 6f 20 49 43 4f |.; handl|e to ICO|
|00001f90| 4e 0d 09 53 54 41 43 4b | 5f 42 45 47 49 4e 0d 09 |N..STACK|_BEGIN..|
|00001fa0| 0d 09 53 41 56 45 5f 41 | 4c 4c 0d 09 0d 09 63 6c |..SAVE_A|LL....cl|
|00001fb0| 72 2e 6c 09 64 30 09 09 | 3b 20 63 6c 65 61 72 20 |r.l.d0..|; clear |
|00001fc0| 72 65 74 75 72 6e 20 76 | 61 6c 75 65 20 66 6f 72 |return v|alue for|
|00001fd0| 20 73 74 61 72 74 65 72 | 73 2e 0d 09 6d 6f 76 65 | starter|s...move|
|00001fe0| 2e 6c 09 64 30 2c 28 61 | 36 29 0d 09 0d 09 6d 6f |.l.d0,(a|6)....mo|
|00001ff0| 76 65 2e 6c 09 61 34 73 | 61 76 65 2c 61 34 0d 09 |ve.l.a4s|ave,a4..|
|00002000| 0d 09 6d 6f 76 65 2e 6c | 09 48 65 61 64 50 6f 69 |..move.l|.HeadPoi|
|00002010| 6e 74 65 72 28 61 34 29 | 2c 61 32 09 3b 20 70 6f |nter(a4)|,a2.; po|
|00002020| 69 6e 74 73 20 74 6f 20 | 66 69 72 73 74 20 49 43 |ints to |first IC|
|00002030| 4f 4e 2f 63 69 63 6e 20 | 72 65 63 6f 72 64 0d 0d |ON/cicn |record..|
|00002040| 50 47 52 4c 54 72 79 3a | 0d 09 6d 6f 76 65 2e 6c |PGRLTry:|..move.l|
|00002050| 09 28 61 32 29 2c 64 30 | 09 09 3b 20 74 65 73 74 |.(a2),d0|..; test|
|00002060| 20 63 75 72 72 65 6e 74 | 20 72 65 63 6f 72 64 27 | current| record'|
|00002070| 73 20 6e 65 78 74 20 70 | 6f 69 6e 74 65 72 3a 20 |s next p|ointer: |
|00002080| 69 73 20 69 74 0d 09 74 | 73 74 2e 6c 09 64 30 09 |is it..t|st.l.d0.|
|00002090| 09 3b 20 4e 49 4c 3f 0d | 09 62 65 71 09 50 47 52 |.; NIL?.|.beq.PGR|
|000020a0| 4c 44 6f 6e 65 09 3b 20 | 2e 2e 2e 74 68 65 6e 20 |LDone.; |...then |
|000020b0| 74 68 69 73 20 72 65 63 | 6f 72 64 20 69 73 20 75 |this rec|ord is u|
|000020c0| 6e 75 73 65 64 20 61 6e | 64 20 74 68 65 72 65 20 |nused an|d there |
|000020d0| 61 72 65 0d 09 09 09 09 | 3b 20 6e 6f 20 6d 6f 72 |are.....|; no mor|
|000020e0| 65 20 69 63 6f 6e 73 2e | 0d 09 0d 09 6d 6f 76 65 |e icons.|....move|
|000020f0| 2e 6c 09 70 61 72 6d 5f | 69 68 28 61 36 29 2c 61 |.l.parm_|ih(a6),a|
|00002100| 33 09 3b 20 67 65 74 20 | 70 6f 69 6e 74 65 72 20 |3.; get |pointer |
|00002110| 74 6f 20 49 43 4f 4e 0d | 0d 09 6c 65 61 09 49 43 |to ICON.|..lea.IC|
|00002120| 4e 5f 4f 46 46 53 45 54 | 28 61 32 29 2c 61 31 09 |N_OFFSET|(a2),a1.|
|00002130| 3b 20 70 6f 69 6e 74 73 | 20 74 6f 20 49 43 4f 4e |; points| to ICON|
|00002140| 0d 09 6d 6f 76 65 09 23 | 28 49 43 4e 5f 4c 45 4e |..move.#|(ICN_LEN|
|00002150| 47 54 48 2f 34 29 2d 31 | 2c 64 37 0d 40 31 3a 09 |GTH/4)-1|,d7.@1:.|
|00002160| 63 6f 6d 70 61 72 65 5f | 6c 20 28 61 31 29 2b 2c |compare_|l (a1)+,|
|00002170| 20 28 61 33 29 2b 09 3b | 20 63 6f 6d 70 61 72 65 | (a3)+.;| compare|
|00002180| 20 34 20 69 63 6f 6e 20 | 62 79 74 65 73 0d 09 62 | 4 icon |bytes..b|
|00002190| 6e 65 09 50 47 52 4c 54 | 72 79 4e 65 78 74 09 3b |ne.PGRLT|ryNext.;|
|000021a0| 20 64 69 66 66 65 72 21 | 20 20 54 68 69 73 20 69 | differ!| This i|
|000021b0| 63 6f 6e 20 69 73 20 6e | 6f 74 20 61 20 6d 61 74 |con is n|ot a mat|
|000021c0| 63 68 2e 0d 09 64 62 66 | 09 64 37 2c 40 31 09 09 |ch...dbf|.d7,@1..|
|000021d0| 3b 20 6c 6f 6f 70 20 62 | 61 63 6b 20 61 6e 64 20 |; loop b|ack and |
|000021e0| 74 72 79 20 6e 65 78 74 | 20 6c 6f 6e 67 77 6f 72 |try next| longwor|
|000021f0| 64 2e 0d 0d 50 47 52 4c | 46 6f 75 6e 64 3a 0d 09 |d...PGRL|Found:..|
|00002200| 6d 6f 76 65 2e 6c 09 61 | 32 2c 28 61 36 29 09 09 |move.l.a|2,(a6)..|
|00002210| 3b 20 72 65 74 75 72 6e | 20 70 6f 69 6e 74 65 72 |; return| pointer|
|00002220| 20 74 6f 20 49 43 4f 4e | 2f 63 69 63 6e 20 72 65 | to ICON|/cicn re|
|00002230| 63 6f 72 64 2e 0d 09 62 | 72 61 09 50 47 52 4c 44 |cord...b|ra.PGRLD|
|00002240| 6f 6e 65 0d 0d 50 47 52 | 4c 54 72 79 4e 65 78 74 |one..PGR|LTryNext|
|00002250| 3a 0d 09 6d 6f 76 65 2e | 6c 09 28 61 32 29 2c 61 |:..move.|l.(a2),a|
|00002260| 32 09 09 3b 20 67 6f 20 | 74 6f 20 6e 65 78 74 20 |2..; go |to next |
|00002270| 49 43 4f 4e 2f 63 69 63 | 6e 20 72 65 63 6f 72 64 |ICON/cic|n record|
|00002280| 2e 0d 09 62 72 61 09 50 | 47 52 4c 54 72 79 09 09 |...bra.P|GRLTry..|
|00002290| 3b 20 6c 6f 6f 70 20 62 | 61 63 6b 20 74 6f 20 74 |; loop b|ack to t|
|000022a0| 65 73 74 20 69 74 2e 0d | 0d 50 47 52 4c 44 6f 6e |est it..|.PGRLDon|
|000022b0| 65 3a 0d 09 52 45 53 54 | 4f 52 45 5f 41 4c 4c 0d |e:..REST|ORE_ALL.|
|000022c0| 09 53 54 41 43 4b 5f 45 | 4e 44 0d 0d 3b 3b 3b 3b |.STACK_E|ND..;;;;|
|000022d0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000022e0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000022f0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002300| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002310| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 0d 3b 0d 3b 20 50 |;;;;;;;;|;;.;.; P|
|00002320| 2e 50 6c 6f 74 2e 49 63 | 6f 6e 09 09 2d 20 50 61 |.Plot.Ic|on..- Pa|
|00002330| 74 63 68 20 74 6f 20 50 | 6c 6f 74 49 63 6f 6e 0d |tch to P|lotIcon.|
|00002340| 3b 0d 3b 20 20 20 54 68 | 69 73 20 70 61 74 63 68 |;.; Th|is patch|
|00002350| 20 69 6e 74 65 72 63 65 | 70 74 73 20 50 6c 6f 74 | interce|pts Plot|
|00002360| 49 63 6f 6e 20 63 61 6c | 6c 73 2e 20 20 49 74 20 |Icon cal|ls. It |
|00002370| 77 6f 72 6b 73 20 69 6e | 20 74 68 65 20 66 6f 6c |works in| the fol|
|00002380| 6c 6f 77 69 6e 67 20 6d | 61 6e 6e 65 72 3a 0d 3b |lowing m|anner:.;|
|00002390| 0d 3b 20 63 61 6c 6c 20 | 47 65 74 50 6f 72 74 20 |.; call |GetPort |
|000023a0| 61 6e 64 20 63 68 65 63 | 6b 20 74 68 65 20 72 6f |and chec|k the ro|
|000023b0| 77 62 79 74 65 73 2c 20 | 23 20 6f 66 20 62 69 74 |wbytes, |# of bit|
|000023c0| 73 2c 20 65 74 63 2e 0d | 3b 20 69 66 20 72 6f 77 |s, etc..|; if row|
|000023d0| 42 79 74 65 73 20 68 61 | 73 20 68 69 67 68 20 33 |Bytes ha|s high 3|
|000023e0| 20 62 69 74 73 20 63 6c | 65 61 72 2c 20 74 68 65 | bits cl|ear, the|
|000023f0| 6e 0d 3b 09 64 69 73 70 | 61 74 63 68 0d 3b 20 69 |n.;.disp|atch.; i|
|00002400| 66 20 23 20 6f 66 20 62 | 69 74 73 20 69 73 20 6c |f # of b|its is l|
|00002410| 65 73 73 20 74 68 61 6e | 20 34 0d 3b 09 64 69 73 |ess than| 4.;.dis|
|00002420| 70 61 74 63 68 0d 3b 0d | 3b 20 73 65 61 72 63 68 |patch.;.|; search|
|00002430| 20 66 6f 72 20 49 43 4e | 23 20 69 6e 20 6f 75 72 | for ICN|# in our|
|00002440| 20 74 61 62 6c 65 0d 3b | 20 69 66 20 6e 6f 74 20 | table.;| if not |
|00002450| 66 6f 75 6e 64 0d 3b 09 | 64 69 73 70 61 74 63 68 |found.;.|dispatch|
|00002460| 0d 3b 20 63 61 6c 6c 20 | 50 6c 6f 74 43 49 63 6f |.; call |PlotCIco|
|00002470| 6e 20 0d 3b 0d 3b 20 20 | 54 68 65 20 73 74 61 63 |n .;.; |The stac|
|00002480| 6b 20 66 6f 72 20 61 20 | 50 6c 6f 74 49 63 6f 6e |k for a |PlotIcon|
|00002490| 20 63 61 6c 6c 20 6c 6f | 6f 6b 73 20 6c 69 6b 65 | call lo|oks like|
|000024a0| 20 74 68 69 73 3a 0d 3b | 0d 3b 20 20 20 20 20 20 | this:.;|.; |
|000024b0| 20 20 20 20 20 20 20 20 | 20 20 41 36 20 20 20 20 | | A6 |
|000024c0| 20 20 20 20 34 28 41 36 | 29 20 20 20 20 20 20 20 | 4(A6|) |
|000024d0| 38 28 41 36 29 20 20 20 | 20 20 20 20 31 32 28 41 |8(A6) | 12(A|
|000024e0| 36 29 0d 3b 20 20 20 20 | 20 20 20 20 20 20 20 20 |6).; | |
|000024f0| 20 20 20 20 7c 20 20 20 | 20 20 20 20 20 20 20 20 | | | |
|00002500| 7c 20 20 20 20 20 20 20 | 20 20 20 20 7c 20 20 20 || | | |
|00002510| 20 20 20 20 20 20 20 20 | 7c 0d 3b 20 53 74 61 63 | ||.; Stac|
|00002520| 6b 20 67 72 6f 77 73 20 | 2d 2d 2b 2d 2d 2d 2d 2d |k grows |--+-----|
|00002530| 2d 2d 2d 2d 2d 2d 2b 2d | 2d 2d 2d 2d 2d 2d 2d 2d |------+-|--------|
|00002540| 2d 2d 2b 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2b 2d |--+-----|------+-|
|00002550| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2b 2d 2d 2d 0d 3b |--------|--+---.;|
|00002560| 20 3c 2d 2d 20 74 68 69 | 73 20 77 61 79 20 20 7c | <-- thi|s way ||
|00002570| 20 20 4f 6c 64 20 20 41 | 36 20 20 7c 20 52 74 72 | Old A|6 | Rtr|
|00002580| 6e 20 41 64 72 73 20 7c | 20 20 49 63 6f 6e 20 48 |n Adrs || Icon H|
|00002590| 64 6c 20 7c 20 20 52 65 | 63 74 20 50 74 72 20 7c |dl | Re|ct Ptr ||
|000025a0| 0d 3b 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2d |.; | -|
|000025b0| 2d 2b 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2b 2d 2d |-+------|-----+--|
|000025c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2b 2d 2d 2d 2d 2d 2d |--------|-+------|
|000025d0| 2d 2d 2d 2d 2d 2b 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |-----+--|--------|
|000025e0| 2d 2b 2d 2d 2d 0d 3b 0d | 3b 20 4e 6f 74 65 73 3a |-+---.;.|; Notes:|
|000025f0| 0d 3b 20 31 29 20 20 54 | 68 69 73 20 70 61 74 63 |.; 1) T|his patc|
|00002600| 68 20 68 61 73 20 61 20 | 6b 6e 6f 77 6e 20 62 75 |h has a |known bu|
|00002610| 67 3a 20 69 74 20 70 61 | 73 73 65 73 20 61 20 22 |g: it pa|sses a "|
|00002620| 66 61 6b 65 20 68 61 6e | 64 6c 65 22 20 74 6f 20 |fake han|dle" to |
|00002630| 50 6c 6f 74 43 49 63 6f | 6e 2e 20 20 54 68 69 73 |PlotCIco|n. This|
|00002640| 0d 3b 20 62 75 67 20 63 | 61 6e 20 62 65 20 66 69 |.; bug c|an be fi|
|00002650| 78 65 64 20 28 69 66 20 | 6e 65 63 65 73 73 61 72 |xed (if |necessar|
|00002660| 79 29 20 62 79 20 68 61 | 76 69 6e 67 20 74 68 65 |y) by ha|ving the|
|00002670| 20 69 6e 73 74 61 6c 6c | 20 63 6f 64 65 20 61 6c | install| code al|
|00002680| 6c 6f 63 61 74 65 20 61 | 20 68 61 6e 64 6c 65 2c |locate a| handle,|
|00002690| 0d 3b 20 74 68 65 6e 20 | 68 61 76 65 20 74 68 69 |.; then |have thi|
|000026a0| 73 20 70 61 74 63 68 20 | 63 6f 70 79 20 74 68 65 |s patch |copy the|
|000026b0| 20 63 69 63 6e 20 64 61 | 74 61 20 69 6e 74 6f 20 | cicn da|ta into |
|000026c0| 74 68 69 73 20 22 73 63 | 72 61 74 63 68 20 62 75 |this "sc|ratch bu|
|000026d0| 66 66 65 72 22 20 61 6e | 64 20 70 61 73 73 0d 3b |ffer" an|d pass.;|
|000026e0| 20 74 68 65 20 68 61 6e | 64 6c 65 20 74 6f 20 74 | the han|dle to t|
|000026f0| 68 65 20 73 63 72 61 74 | 63 68 20 62 75 66 66 65 |he scrat|ch buffe|
|00002700| 72 20 74 6f 20 50 6c 6f | 74 43 49 63 6f 6e 2e 0d |r to Plo|tCIcon..|
|00002710| 3b 0d 3b 20 32 29 20 20 | 54 68 65 20 47 65 74 50 |;.; 2) |The GetP|
|00002720| 6f 72 74 20 63 68 65 63 | 6b 69 6e 67 20 69 73 20 |ort chec|king is |
|00002730| 63 75 72 72 65 6e 74 6c | 79 20 6e 6f 74 20 64 6f |currentl|y not do|
|00002740| 6e 65 2e 20 20 54 68 69 | 73 20 6d 65 61 6e 73 20 |ne. Thi|s means |
|00002750| 74 68 61 74 20 74 68 65 | 20 70 61 74 63 68 0d 3b |that the| patch.;|
|00002760| 20 77 69 6c 6c 20 73 74 | 69 6c 6c 20 62 65 20 61 | will st|ill be a|
|00002770| 63 74 69 6e 67 20 69 66 | 20 74 68 65 20 6d 6f 6e |cting if| the mon|
|00002780| 69 74 6f 72 20 69 73 20 | 73 65 74 20 74 6f 20 31 |itor is |set to 1|
|00002790| 20 6f 72 20 32 20 62 69 | 74 73 2e 20 20 53 69 6e | or 2 bi|ts. Sin|
|000027a0| 63 65 20 50 6c 6f 74 49 | 63 6f 6e 0d 3b 20 75 73 |ce PlotI|con.; us|
|000027b0| 65 73 20 74 68 65 20 42 | 2f 57 20 69 63 6f 6e 20 |es the B|/W icon |
|000027c0| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 20 69 6e |automati|cally in|
|000027d0| 20 74 68 69 73 20 63 61 | 73 65 2c 20 69 74 27 73 | this ca|se, it's|
|000027e0| 20 6e 6f 74 20 72 65 61 | 6c 6c 79 20 61 20 70 72 | not rea|lly a pr|
|000027f0| 6f 62 6c 65 6d 20 2d 2d | 0d 3b 20 69 74 20 6a 75 |oblem --|.; it ju|
|00002800| 73 74 20 6d 61 6b 65 73 | 20 64 72 61 77 69 6e 67 |st makes| drawing|
|00002810| 20 61 20 62 69 74 20 73 | 6c 6f 77 65 72 20 62 65 | a bit s|lower be|
|00002820| 63 61 75 73 65 20 6f 66 | 20 74 68 65 20 6f 76 65 |cause of| the ove|
|00002830| 72 68 65 61 64 20 6f 66 | 20 74 68 69 73 20 63 6f |rhead of| this co|
|00002840| 64 65 2e 0d 3b 0d 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |de..;.;;|;;;;;;;;|
|00002850| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002860| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002870| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002880| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002890| 3b 3b 3b 3b 0d 50 50 6c | 6f 74 49 63 6f 6e 3a 0d |;;;;.PPl|otIcon:.|
|000028a0| 09 6c 69 6e 6b 09 61 36 | 2c 23 30 0d 09 6d 6f 76 |.link.a6|,#0..mov|
|000028b0| 65 6d 2e 6c 09 64 30 2d | 64 37 2f 61 30 2d 61 34 |em.l.d0-|d7/a0-a4|
|000028c0| 2c 2d 28 73 70 29 0d 09 | 0d 09 6d 6f 76 65 2e 6c |,-(sp)..|..move.l|
|000028d0| 09 61 34 73 61 76 65 28 | 70 63 29 2c 61 34 0d 0d |.a4save(|pc),a4..|
|000028e0| 09 63 6c 72 2e 6c 09 2d | 28 73 70 29 09 09 3b 20 |.clr.l.-|(sp)..; |
|000028f0| 73 70 61 63 65 20 66 6f | 72 20 72 65 74 75 72 6e |space fo|r return|
|00002900| 20 76 61 6c 75 65 0d 09 | 6d 6f 76 65 2e 6c 09 38 | value..|move.l.8|
|00002910| 28 61 36 29 2c 61 30 09 | 3b 20 49 43 4e 23 20 68 |(a6),a0.|; ICN# h|
|00002920| 61 6e 64 6c 65 0d 09 6d | 6f 76 65 2e 6c 09 28 61 |andle..m|ove.l.(a|
|00002930| 30 29 2c 2d 28 73 70 29 | 09 3b 20 70 75 73 68 20 |0),-(sp)|.; push |
|00002940| 70 6f 69 6e 74 65 72 0d | 09 62 73 72 09 50 47 52 |pointer.|.bsr.PGR|
|00002950| 4c 6f 6f 6b 75 70 0d 09 | 6d 6f 76 65 2e 6c 09 28 |Lookup..|move.l.(|
|00002960| 73 70 29 2b 2c 61 30 09 | 3b 20 67 65 74 20 72 65 |sp)+,a0.|; get re|
|00002970| 73 75 6c 74 0d 09 6d 6f | 76 65 2e 6c 09 61 30 2c |sult..mo|ve.l.a0,|
|00002980| 64 30 09 09 3b 20 69 73 | 20 69 74 20 4e 49 4c 3f |d0..; is| it NIL?|
|00002990| 0d 09 74 73 74 2e 6c 09 | 64 30 0d 09 62 65 71 09 |..tst.l.|d0..beq.|
|000029a0| 50 50 49 45 72 72 31 09 | 09 3b 20 79 65 70 2c 20 |PPIErr1.|.; yep, |
|000029b0| 6e 6f 20 63 6f 6c 6f 72 | 20 69 63 6f 6e 2c 20 73 |no color| icon, s|
|000029c0| 6f 20 64 69 73 70 61 74 | 63 68 2e 0d 0d 09 61 64 |o dispat|ch....ad|
|000029d0| 64 61 2e 6c 09 23 43 49 | 43 4e 5f 4f 46 46 53 45 |da.l.#CI|CN_OFFSE|
|000029e0| 54 2c 61 30 09 3b 20 67 | 65 74 20 70 74 72 20 74 |T,a0.; g|et ptr t|
|000029f0| 6f 20 63 69 63 6e 0d 09 | 6d 6f 76 65 2e 6c 09 31 |o cicn..|move.l.1|
|00002a00| 32 28 61 36 29 2c 2d 28 | 73 70 29 09 3b 20 75 73 |2(a6),-(|sp).; us|
|00002a10| 65 20 74 68 65 20 72 65 | 63 74 20 70 74 72 20 74 |e the re|ct ptr t|
|00002a20| 68 61 74 20 74 68 65 79 | 20 67 61 76 65 20 75 73 |hat they| gave us|
|00002a30| 0d 09 6d 6f 76 65 2e 6c | 09 61 30 2c 2d 28 73 70 |..move.l|.a0,-(sp|
|00002a40| 29 09 3b 20 70 6f 69 6e | 74 65 72 20 74 6f 20 63 |).; poin|ter to c|
|00002a50| 69 63 6e 20 72 65 73 6f | 75 72 63 65 20 73 74 72 |icn reso|urce str|
|00002a60| 75 63 74 75 72 65 0d 09 | 63 6c 72 09 2d 28 73 70 |ucture..|clr.-(sp|
|00002a70| 29 09 3b 20 53 72 63 43 | 6f 70 79 20 6d 6f 64 65 |).; SrcC|opy mode|
|00002a80| 0d 09 62 73 72 09 50 43 | 42 50 6c 6f 74 49 74 0d |..bsr.PC|BPlotIt.|
|00002a90| 09 0d 3b 20 45 78 69 74 | 20 70 6f 69 6e 74 20 66 |..; Exit| point f|
|00002aa0| 6f 72 20 72 65 74 75 72 | 6e 69 6e 67 20 77 69 74 |or retur|ning wit|
|00002ab0| 68 6f 75 74 20 64 69 73 | 70 61 74 63 68 69 6e 67 |hout dis|patching|
|00002ac0| 2e 0d 3b 0d 50 50 49 45 | 72 72 32 3a 0d 09 6d 6f |..;.PPIE|rr2:..mo|
|00002ad0| 76 65 2e 6c 09 34 28 61 | 36 29 2c 31 32 28 61 36 |ve.l.4(a|6),12(a6|
|00002ae0| 29 09 3b 20 63 6f 70 79 | 20 74 68 65 69 72 20 72 |).; copy| their r|
|00002af0| 65 74 75 72 6e 20 61 64 | 64 72 65 73 73 20 74 6f |eturn ad|dress to|
|00002b00| 20 74 6f 70 20 34 20 62 | 79 74 65 73 20 6f 66 0d | top 4 b|ytes of.|
|00002b10| 09 09 09 09 3b 20 6f 72 | 69 67 69 6e 61 6c 20 70 |....; or|iginal p|
|00002b20| 61 72 61 6d 65 74 65 72 | 73 2e 0d 09 6d 6f 76 65 |arameter|s...move|
|00002b30| 6d 2e 6c 09 28 73 70 29 | 2b 2c 64 30 2d 64 37 2f |m.l.(sp)|+,d0-d7/|
|00002b40| 61 30 2d 61 34 20 3b 20 | 72 65 73 74 6f 72 65 20 |a0-a4 ; |restore |
|00002b50| 72 65 67 73 0d 09 75 6e | 6c 6b 09 61 36 09 09 3b |regs..un|lk.a6..;|
|00002b60| 20 72 65 73 74 6f 72 65 | 20 61 36 0d 09 6c 65 61 | restore| a6..lea|
|00002b70| 09 38 28 73 70 29 2c 73 | 70 09 3b 20 64 69 73 63 |.8(sp),s|p.; disc|
|00002b80| 61 72 64 20 38 20 62 79 | 74 65 73 20 77 6f 72 74 |ard 8 by|tes wort|
|00002b90| 68 20 6f 66 20 73 74 61 | 63 6b 20 28 63 6f 72 72 |h of sta|ck (corr|
|00002ba0| 65 73 70 6f 6e 64 73 0d | 09 09 09 09 3b 20 74 6f |esponds.|....; to|
|00002bb0| 20 74 68 65 20 38 20 62 | 79 74 65 73 20 6f 66 20 | the 8 b|ytes of |
|00002bc0| 70 61 72 61 6d 65 74 65 | 72 73 20 74 68 61 74 20 |paramete|rs that |
|00002bd0| 6f 75 72 0d 09 09 09 09 | 3b 20 6f 72 69 67 69 6e |our.....|; origin|
|00002be0| 61 6c 20 63 61 6c 6c 20 | 68 61 64 2e 29 0d 09 72 |al call |had.)..r|
|00002bf0| 74 73 09 09 09 3b 20 72 | 65 74 75 72 6e 20 74 6f |ts...; r|eturn to|
|00002c00| 20 6f 72 69 67 69 6e 61 | 6c 20 72 65 74 75 72 6e | origina|l return|
|00002c10| 20 61 64 64 72 65 73 73 | 2e 0d 0d 3b 20 45 78 69 | address|...; Exi|
|00002c20| 74 20 70 6f 69 6e 74 20 | 66 6f 72 20 64 69 73 70 |t point |for disp|
|00002c30| 61 74 63 68 69 6e 67 20 | 74 6f 20 50 6c 6f 74 49 |atching |to PlotI|
|00002c40| 63 6f 6e 0d 3b 0d 50 50 | 49 45 72 72 31 3a 0d 09 |con.;.PP|IErr1:..|
|00002c50| 6d 6f 76 65 6d 2e 6c 09 | 28 73 70 29 2b 2c 64 30 |movem.l.|(sp)+,d0|
|00002c60| 2d 64 37 2f 61 30 2d 61 | 34 0d 09 75 6e 6c 6b 09 |-d7/a0-a|4..unlk.|
|00002c70| 61 36 0d 09 6d 6f 76 65 | 2e 6c 09 50 50 49 53 61 |a6..move|.l.PPISa|
|00002c80| 76 65 2c 20 2d 28 73 70 | 29 0d 09 72 74 73 0d 09 |ve, -(sp|)..rts..|
|00002c90| 0d 0d 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |..;;;;;;|;;;;;;;;|
|00002ca0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002cb0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002cc0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002cd0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00002ce0| 0d 3b 0d 3b 20 50 2e 43 | 6f 70 79 42 69 74 73 09 |.;.; P.C|opyBits.|
|00002cf0| 09 2d 20 50 61 74 63 68 | 20 74 6f 20 43 6f 70 79 |.- Patch| to Copy|
|00002d00| 42 69 74 73 0d 3b 0d 3b | 20 20 20 54 68 69 73 20 |Bits.;.;| This |
|00002d10| 70 61 74 63 68 20 69 6e | 74 65 72 63 65 70 74 73 |patch in|tercepts|
|00002d20| 20 43 6f 70 79 42 69 74 | 73 20 63 61 6c 6c 73 2e | CopyBit|s calls.|
|00002d30| 20 20 49 74 20 77 6f 72 | 6b 73 20 69 6e 20 74 68 | It wor|ks in th|
|00002d40| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 6d 61 6e 6e |e follow|ing mann|
|00002d50| 65 72 3a 0d 3b 0d 3b 20 | 63 61 6c 6c 20 47 65 74 |er:.;.; |call Get|
|00002d60| 50 6f 72 74 20 61 6e 64 | 20 63 68 65 63 6b 20 74 |Port and| check t|
|00002d70| 68 65 20 72 6f 77 62 79 | 74 65 73 2c 20 23 20 6f |he rowby|tes, # o|
|00002d80| 66 20 62 69 74 73 2c 20 | 65 74 63 2e 0d 3b 20 69 |f bits, |etc..; i|
|00002d90| 66 20 72 6f 77 42 79 74 | 65 73 20 68 61 73 20 68 |f rowByt|es has h|
|00002da0| 69 67 68 20 33 20 62 69 | 74 73 20 63 6c 65 61 72 |igh 3 bi|ts clear|
|00002db0| 2c 20 74 68 65 6e 0d 3b | 09 64 69 73 70 61 74 63 |, then.;|.dispatc|
|00002dc0| 68 0d 3b 20 69 66 20 23 | 20 6f 66 20 62 69 74 73 |h.; if #| of bits|
|00002dd0| 20 69 73 20 6c 65 73 73 | 20 74 68 61 6e 20 34 0d | is less| than 4.|
|00002de0| 3b 09 64 69 73 70 61 74 | 63 68 0d 3b 0d 3b 20 69 |;.dispat|ch.;.; i|
|00002df0| 66 20 4d 61 73 6b 52 67 | 6e 20 6e 6f 74 20 4e 49 |f MaskRg|n not NI|
|00002e00| 4c 20 74 68 65 6e 20 64 | 69 73 70 61 74 63 68 0d |L then d|ispatch.|
|00002e10| 3b 20 69 66 20 6d 6f 64 | 65 20 3d 3d 20 73 72 63 |; if mod|e == src|
|00002e20| 42 69 63 20 6f 72 20 6d | 6f 64 65 20 3d 3d 20 6e |Bic or m|ode == n|
|00002e30| 6f 74 53 72 63 42 69 63 | 20 74 68 65 6e 20 64 69 |otSrcBic| then di|
|00002e40| 73 70 61 74 63 68 0d 3b | 20 69 66 20 73 72 63 52 |spatch.;| if srcR|
|00002e50| 65 63 74 20 6e 6f 74 20 | 65 71 75 61 6c 20 74 6f |ect not |equal to|
|00002e60| 20 28 30 2c 30 2c 33 32 | 2c 33 32 29 20 74 68 65 | (0,0,32|,32) the|
|00002e70| 6e 20 64 69 73 70 61 74 | 63 68 0d 3b 20 69 66 20 |n dispat|ch.; if |
|00002e80| 73 72 63 42 69 74 73 20 | 72 6f 77 42 79 74 65 73 |srcBits |rowBytes|
|00002e90| 20 6e 6f 74 20 65 71 75 | 61 6c 20 74 6f 20 34 20 | not equ|al to 4 |
|00002ea0| 74 68 65 6e 20 64 69 73 | 70 61 74 63 68 0d 3b 20 |then dis|patch.; |
|00002eb0| 69 66 20 73 72 63 42 69 | 74 73 20 62 6f 75 6e 64 |if srcBi|ts bound|
|00002ec0| 73 20 6e 6f 74 20 65 71 | 75 61 6c 20 74 6f 20 28 |s not eq|ual to (|
|00002ed0| 30 2c 30 2c 33 32 2c 33 | 32 29 20 74 68 65 6e 20 |0,0,32,3|2) then |
|00002ee0| 64 69 73 70 61 74 63 68 | 0d 3b 20 0d 3b 20 73 65 |dispatch|.; .; se|
|00002ef0| 61 72 63 68 20 66 6f 72 | 20 49 43 4e 23 20 69 6e |arch for| ICN# in|
|00002f00| 20 6f 75 72 20 74 61 62 | 6c 65 0d 3b 20 69 66 20 | our tab|le.; if |
|00002f10| 6e 6f 74 20 66 6f 75 6e | 64 0d 3b 09 64 69 73 70 |not foun|d.;.disp|
|00002f20| 61 74 63 68 0d 3b 20 63 | 61 6c 6c 20 50 6c 6f 74 |atch.; c|all Plot|
|00002f30| 43 49 63 6f 6e 20 0d 3b | 0d 3b 20 20 54 68 65 20 |CIcon .;|.; The |
|00002f40| 73 74 61 63 6b 20 66 6f | 72 20 61 20 43 6f 70 79 |stack fo|r a Copy|
|00002f50| 42 69 74 73 20 63 61 6c | 6c 20 6c 6f 6f 6b 73 20 |Bits cal|l looks |
|00002f60| 6c 69 6b 65 20 74 68 69 | 73 3a 0d 3b 0d 3b 20 20 |like thi|s:.;.; |
|00002f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 41 36 | | A6|
|00002f80| 20 20 20 20 20 20 34 28 | 41 36 29 20 20 20 20 20 | 4(|A6) |
|00002f90| 38 28 41 36 29 20 20 20 | 20 31 32 28 41 36 29 20 |8(A6) | 12(A6) |
|00002fa0| 31 34 28 61 36 29 0d 3b | 20 20 20 20 20 20 20 20 |14(a6).;| |
|00002fb0| 20 20 20 20 20 20 20 20 | 7c 20 20 20 20 20 20 20 | || |
|00002fc0| 20 20 7c 20 20 20 20 20 | 20 20 20 20 7c 20 20 20 | | | | |
|00002fd0| 20 20 20 20 20 20 7c 20 | 20 20 20 7c 0d 3b 20 53 | | | |.; S|
|00002fe0| 74 61 63 6b 20 67 72 6f | 77 73 20 2d 2d 2b 2d 2d |tack gro|ws --+--|
|00002ff0| 2d 2d 2d 2d 2d 2d 2d 2b | 2d 2d 2d 2d 2d 2d 2d 2d |-------+|--------|
|00003000| 2d 2b 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2b 2d 2d 2d 2d |-+------|---+----|
|00003010| 2b 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2b 2d 2f 0d 3b 20 |+-------|--+-/.; |
|00003020| 3c 2d 2d 20 74 68 69 73 | 20 77 61 79 20 20 7c 20 |<-- this| way | |
|00003030| 4f 6c 64 20 20 41 36 20 | 7c 52 74 72 6e 20 41 64 |Old A6 ||Rtrn Ad|
|00003040| 72 73 7c 20 6d 61 73 6b | 52 67 6e 20 7c 6d 6f 64 |rs| mask|Rgn |mod|
|00003050| 65 7c 20 64 73 74 52 65 | 63 74 20 7c 20 5c 0d 3b |e| dstRe|ct | \.;|
|00003060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2d 2d 2b | | --+|
|00003070| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2b 2d 2d 2d 2d 2d 2d |--------|-+------|
|00003080| 2d 2d 2d 2b 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2b 2d 2d |---+----|-----+--|
|00003090| 2d 2d 2b 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2b 2d 2f 0d |--+-----|----+-/.|
|000030a0| 3b 0d 3b 09 09 09 09 09 | 20 31 38 28 61 36 29 20 |;.;.....| 18(a6) |
|000030b0| 20 20 20 32 32 28 61 36 | 29 20 20 20 20 32 36 28 | 22(a6|) 26(|
|000030c0| 61 36 29 0d 3b 09 09 09 | 09 09 20 20 20 7c 20 20 |a6).;...|.. | |
|000030d0| 20 20 20 20 20 20 20 7c | 20 20 20 20 20 20 20 20 | || |
|000030e0| 20 7c 0d 3b 09 09 09 09 | 09 2f 2d 2b 2d 2d 2d 2d | |.;....|./-+----|
|000030f0| 2d 2d 2d 2d 2d 2b 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2b |-----+--|-------+|
|00003100| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2b 2d 2d 2d 0d 3b 09 |--------|-+---.;.|
|00003110| 09 09 09 09 5c 20 7c 20 | 73 72 63 52 65 63 74 20 |....\ | |srcRect |
|00003120| 7c 20 64 73 74 42 69 74 | 73 20 7c 20 73 72 63 42 || dstBit|s | srcB|
|00003130| 69 74 73 20 7c 0d 3b 09 | 09 09 09 09 2f 2d 2b 2d |its |.;.|..../-+-|
|00003140| 2d 2d 2d 2d 2d 2d 2d 2d | 2b 2d 2d 2d 2d 2d 2d 2d |--------|+-------|
|00003150| 2d 2d 2b 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2b 2d 2d 2d |--+-----|----+---|
|00003160| 0d 3b 0d 3b 20 4e 6f 74 | 65 73 3a 0d 3b 20 31 29 |.;.; Not|es:.; 1)|
|00003170| 20 20 53 65 65 20 6e 6f | 74 65 20 31 29 20 69 6e | See no|te 1) in|
|00003180| 20 50 50 6c 6f 74 49 63 | 6f 6e 20 61 62 6f 76 65 | PPlotIc|on above|
|00003190| 2e 0d 3b 0d 3b 20 32 29 | 20 20 53 65 65 20 6e 6f |..;.; 2)| See no|
|000031a0| 74 65 20 32 29 20 69 6e | 20 50 50 6c 6f 74 49 63 |te 2) in| PPlotIc|
|000031b0| 6f 6e 20 61 62 6f 76 65 | 2e 0d 3b 0d 3b 20 33 29 |on above|..;.; 3)|
|000031c0| 20 20 43 6f 70 79 42 69 | 74 73 20 6d 75 73 74 20 | CopyBi|ts must |
|000031d0| 62 65 20 70 61 74 63 68 | 65 64 20 74 6f 20 67 65 |be patch|ed to ge|
|000031e0| 74 20 63 6f 6c 6f 72 20 | 69 63 6f 6e 73 20 69 6e |t color |icons in|
|000031f0| 20 74 68 65 20 46 69 6e | 64 65 72 2e 20 20 41 70 | the Fin|der. Ap|
|00003200| 70 61 72 65 6e 74 6c 79 | 2c 0d 3b 20 74 68 65 20 |parently|,.; the |
|00003210| 46 69 6e 64 65 72 20 75 | 73 65 73 20 43 6f 70 79 |Finder u|ses Copy|
|00003220| 42 69 74 73 20 69 6e 73 | 74 65 61 64 20 6f 66 20 |Bits ins|tead of |
|00003230| 50 6c 6f 74 49 63 6f 6e | 20 66 6f 72 20 74 77 6f |PlotIcon| for two|
|00003240| 20 72 65 61 73 6f 6e 73 | 3a 0d 3b 20 20 20 20 31 | reasons|:.; 1|
|00003250| 2e 09 54 68 65 79 20 6f | 63 63 61 73 69 6f 6e 61 |..They o|ccasiona|
|00003260| 6c 6c 79 20 68 61 76 65 | 20 74 6f 20 63 72 65 61 |lly have| to crea|
|00003270| 74 65 20 74 68 65 69 72 | 20 6f 77 6e 20 6f 66 66 |te their| own off|
|00003280| 2d 73 63 72 65 65 6e 20 | 62 69 74 6d 61 70 20 66 |-screen |bitmap f|
|00003290| 6f 72 20 74 68 65 0d 3b | 09 70 75 72 70 6f 73 65 |or the.;|.purpose|
|000032a0| 73 20 6f 66 20 28 61 6d | 6f 6e 67 20 6f 74 68 65 |s of (am|ong othe|
|000032b0| 72 20 74 68 69 6e 67 73 | 29 20 63 72 65 61 74 69 |r things|) creati|
|000032c0| 6e 67 20 64 69 6d 6d 65 | 64 20 69 63 6f 6e 73 20 |ng dimme|d icons |
|000032d0| 61 6e 64 20 63 72 65 61 | 74 69 6e 67 0d 3b 09 74 |and crea|ting.;.t|
|000032e0| 68 65 20 67 72 61 79 20 | 6f 75 74 6c 69 6e 65 20 |he gray |outline |
|000032f0| 6f 66 20 74 68 65 20 6d | 61 73 6b 20 66 6f 72 20 |of the m|ask for |
|00003300| 64 72 61 67 67 69 6e 67 | 20 69 63 6f 6e 73 2e 0d |dragging| icons..|
|00003310| 3b 20 20 20 20 32 2e 20 | 50 6c 6f 74 49 63 6f 6e |; 2. |PlotIcon|
|00003320| 20 63 61 6c 6c 73 20 61 | 72 65 20 69 67 6e 6f 72 | calls a|re ignor|
|00003330| 65 64 20 77 68 65 6e 20 | 70 72 69 6e 74 69 6e 67 |ed when |printing|
|00003340| 2e 20 20 49 6e 20 6f 74 | 68 65 72 20 77 6f 72 64 |. In ot|her word|
|00003350| 73 2c 20 74 68 65 79 20 | 61 72 65 20 6e 6f 74 0d |s, they |are not.|
|00003360| 3b 09 63 61 75 67 68 74 | 20 62 79 20 74 68 65 20 |;.caught| by the |
|00003370| 62 6f 74 74 6c 65 6e 65 | 63 6b 20 70 72 6f 63 20 |bottlene|ck proc |
|00003380| 74 68 61 74 20 63 61 70 | 74 75 72 65 73 20 70 69 |that cap|tures pi|
|00003390| 63 74 75 72 65 20 64 61 | 74 61 20 62 65 74 77 65 |cture da|ta betwe|
|000033a0| 65 6e 0d 3b 09 50 72 4f | 70 65 6e 50 61 67 65 20 |en.;.PrO|penPage |
|000033b0| 61 6e 64 20 50 72 43 6c | 6f 73 65 50 61 67 65 2e |and PrCl|osePage.|
|000033c0| 0d 3b 0d 3b 20 34 29 20 | 20 54 68 65 72 65 20 61 |.;.; 4) | There a|
|000033d0| 72 65 20 63 65 72 74 61 | 69 6e 20 73 69 74 75 61 |re certa|in situa|
|000033e0| 74 69 6f 6e 73 20 69 6e | 20 77 68 69 63 68 20 74 |tions in| which t|
|000033f0| 68 69 73 20 70 61 74 63 | 68 20 77 69 6c 6c 20 67 |his patc|h will g|
|00003400| 65 74 20 66 6f 6f 6c 65 | 64 20 62 79 20 61 0d 3b |et foole|d by a.;|
|00003410| 20 43 6f 70 79 42 69 74 | 73 20 63 61 6c 6c 20 74 | CopyBit|s call t|
|00003420| 68 61 74 20 69 73 20 6e | 6f 74 20 72 65 61 6c 6c |hat is n|ot reall|
|00003430| 79 20 61 6e 20 69 63 6f | 6e 2e 20 20 54 68 69 73 |y an ico|n. This|
|00003440| 20 77 69 6c 6c 20 68 61 | 70 70 65 6e 2c 20 66 6f | will ha|ppen, fo|
|00003450| 72 20 65 78 61 6d 70 6c | 65 2c 20 69 66 0d 3b 20 |r exampl|e, if.; |
|00003460| 28 69 6e 20 4d 61 63 50 | 61 69 6e 74 29 20 79 6f |(in MacP|aint) yo|
|00003470| 75 20 73 65 6c 65 63 74 | 20 61 6e 20 61 72 65 61 |u select| an area|
|00003480| 20 65 78 61 63 74 6c 79 | 20 33 32 78 33 32 20 70 | exactly| 32x32 p|
|00003490| 69 78 65 6c 73 20 69 6e | 20 73 69 7a 65 20 77 68 |ixels in| size wh|
|000034a0| 69 63 68 20 63 6f 6e 74 | 61 69 6e 73 0d 3b 20 61 |ich cont|ains.; a|
|000034b0| 6e 20 69 6d 61 67 65 20 | 65 78 61 63 74 6c 79 20 |n image |exactly |
|000034c0| 69 64 65 6e 74 69 63 61 | 6c 20 74 6f 20 74 68 61 |identica|l to tha|
|000034d0| 74 20 69 6e 20 6f 6e 65 | 20 6f 66 20 6f 75 72 20 |t in one| of our |
|000034e0| 69 63 6f 6e 73 20 61 6e | 64 20 64 72 61 67 20 69 |icons an|d drag i|
|000034f0| 74 20 77 69 74 68 20 74 | 68 65 0d 3b 20 6d 6f 75 |t with t|he.; mou|
|00003500| 73 65 2e 20 20 53 69 6e | 63 65 20 73 75 63 68 20 |se. Sin|ce such |
|00003510| 61 6e 20 6f 63 63 75 72 | 72 61 6e 63 65 20 69 73 |an occur|rance is|
|00003520| 20 72 61 72 65 20 28 65 | 78 63 65 70 74 20 77 68 | rare (e|xcept wh|
|00003530| 65 6e 20 64 6f 6e 65 20 | 64 65 6c 69 62 65 72 61 |en done |delibera|
|00003540| 74 65 6c 79 29 20 49 0d | 3b 20 64 65 65 6d 20 74 |tely) I.|; deem t|
|00003550| 68 65 20 62 75 67 20 61 | 63 63 65 70 74 61 62 6c |he bug a|cceptabl|
|00003560| 65 2e 0d 3b 20 20 20 20 | 20 57 65 20 63 6f 75 6c |e..; | We coul|
|00003570| 64 20 66 69 78 20 74 68 | 69 73 20 62 75 67 20 62 |d fix th|is bug b|
|00003580| 79 20 63 68 65 63 6b 69 | 6e 67 20 74 68 65 20 63 |y checki|ng the c|
|00003590| 75 72 72 65 6e 74 20 61 | 70 70 6c 69 63 61 74 69 |urrent a|pplicati|
|000035a0| 6f 6e 20 6e 61 6d 65 20 | 28 74 6f 20 73 65 65 20 |on name |(to see |
|000035b0| 69 66 0d 3b 20 69 74 27 | 73 20 74 68 65 20 46 69 |if.; it'|s the Fi|
|000035c0| 6e 64 65 72 29 20 62 75 | 74 20 74 68 69 73 20 77 |nder) bu|t this w|
|000035d0| 6f 75 6c 64 20 6e 6f 74 | 20 77 6f 72 6b 20 75 6e |ould not| work un|
|000035e0| 64 65 72 20 4d 75 6c 74 | 69 46 69 6e 64 65 72 2e |der Mult|iFinder.|
|000035f0| 0d 3b 0d 3b 20 35 29 20 | 20 54 68 65 72 65 20 69 |.;.; 5) | There i|
|00003600| 73 20 61 20 70 6f 74 65 | 6e 74 69 61 6c 20 70 72 |s a pote|ntial pr|
|00003610| 6f 62 6c 65 6d 20 77 69 | 74 68 20 70 72 69 6e 74 |oblem wi|th print|
|00003620| 69 6e 67 2e 20 20 54 68 | 69 73 20 70 61 74 63 68 |ing. Th|is patch|
|00003630| 20 72 65 70 6c 61 63 65 | 73 20 43 6f 70 79 42 69 | replace|s CopyBi|
|00003640| 74 73 0d 3b 20 63 61 6c | 6c 73 20 77 69 74 68 20 |ts.; cal|ls with |
|00003650| 50 6c 6f 74 43 49 63 6f | 6e 20 63 61 6c 6c 73 2e |PlotCIco|n calls.|
|00003660| 20 20 42 65 63 61 75 73 | 65 20 50 6c 6f 74 43 49 | Becaus|e PlotCI|
|00003670| 63 6f 6e 20 63 61 6c 6c | 73 20 61 72 65 20 69 67 |con call|s are ig|
|00003680| 6e 6f 72 65 64 20 62 79 | 20 74 68 65 20 50 72 69 |nored by| the Pri|
|00003690| 6e 74 0d 3b 20 4d 61 6e | 61 67 65 72 2c 20 74 68 |nt.; Man|ager, th|
|000036a0| 65 79 20 77 69 6c 6c 20 | 6e 6f 74 20 73 68 6f 77 |ey will |not show|
|000036b0| 20 75 70 20 69 6e 20 74 | 68 65 20 70 72 69 6e 74 | up in t|he print|
|000036c0| 65 64 20 6f 75 74 70 75 | 74 2e 20 20 54 68 69 73 |ed outpu|t. This|
|000036d0| 20 69 73 20 6e 6f 74 20 | 61 20 70 72 6f 62 6c 65 | is not |a proble|
|000036e0| 6d 0d 3b 20 77 69 74 68 | 20 62 6c 61 63 6b 2d 61 |m.; with| black-a|
|000036f0| 6e 64 2d 77 68 69 74 65 | 20 70 72 69 6e 74 65 72 |nd-white| printer|
|00003700| 73 20 6c 69 6b 65 20 74 | 68 65 20 35 2e 30 20 4c |s like t|he 5.0 L|
|00003710| 61 73 65 72 57 72 69 74 | 65 72 20 62 65 63 61 75 |aserWrit|er becau|
|00003720| 73 65 20 77 65 20 63 68 | 65 63 6b 20 74 68 65 0d |se we ch|eck the.|
|00003730| 3b 20 63 6f 6c 6f 72 20 | 51 75 69 63 6b 44 72 61 |; color |QuickDra|
|00003740| 77 20 66 6c 61 67 73 20 | 6f 66 20 64 73 74 42 69 |w flags |of dstBi|
|00003750| 74 73 2c 20 77 68 69 63 | 68 20 61 72 65 20 63 6c |ts, whic|h are cl|
|00003760| 65 61 72 20 77 68 65 6e | 20 70 72 69 6e 74 69 6e |ear when| printin|
|00003770| 67 20 74 6f 20 61 20 62 | 6c 61 63 6b 2d 0d 3b 20 |g to a b|lack-.; |
|00003780| 61 6e 64 2d 77 68 69 74 | 65 20 70 72 69 6e 74 65 |and-whit|e printe|
|00003790| 72 2e 20 20 48 6f 77 65 | 76 65 72 2c 20 77 69 74 |r. Howe|ver, wit|
|000037a0| 68 20 36 2e 30 20 4c 61 | 73 65 72 57 72 69 74 65 |h 6.0 La|serWrite|
|000037b0| 72 73 20 69 74 20 64 6f | 65 73 6e 27 74 20 77 6f |rs it do|esn't wo|
|000037c0| 72 6b 2c 20 62 65 63 61 | 75 73 65 0d 3b 20 74 68 |rk, beca|use.; th|
|000037d0| 65 20 70 72 69 6e 74 69 | 6e 67 20 70 6f 72 74 20 |e printi|ng port |
|000037e0| 69 73 20 61 20 43 47 72 | 61 66 50 6f 72 74 2e 0d |is a CGr|afPort..|
|000037f0| 3b 0d 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;.;;;;;;|;;;;;;;;|
|00003800| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00003810| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00003820| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00003830| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00003840| 0d 50 43 6f 70 79 42 69 | 74 73 3a 0d 09 6c 69 6e |.PCopyBi|ts:..lin|
|00003850| 6b 09 61 36 2c 23 30 0d | 09 6d 6f 76 65 6d 2e 6c |k.a6,#0.|.movem.l|
|00003860| 09 64 30 2d 64 37 2f 61 | 30 2d 61 34 2c 2d 28 73 |.d0-d7/a|0-a4,-(s|
|00003870| 70 29 0d 09 0d 09 6d 6f | 76 65 2e 6c 09 61 34 73 |p)....mo|ve.l.a4s|
|00003880| 61 76 65 28 70 63 29 2c | 61 34 0d 0d 3b 20 69 66 |ave(pc),|a4..; if|
|00003890| 20 4d 61 73 6b 52 67 6e | 20 6e 6f 74 20 4e 49 4c | MaskRgn| not NIL|
|000038a0| 20 74 68 65 6e 20 64 69 | 73 70 61 74 63 68 0d 09 | then di|spatch..|
|000038b0| 74 73 74 2e 6c 09 38 28 | 61 36 29 0d 09 62 6e 65 |tst.l.8(|a6)..bne|
|000038c0| 09 50 43 42 45 72 72 31 | 0d 0d 3b 20 69 66 20 6d |.PCBErr1|..; if m|
|000038d0| 6f 64 65 20 3d 3d 20 73 | 72 63 42 69 63 20 6f 72 |ode == s|rcBic or|
|000038e0| 20 6d 6f 64 65 20 3d 3d | 20 6e 6f 74 53 72 63 42 | mode ==| notSrcB|
|000038f0| 69 63 20 74 68 65 6e 20 | 64 69 73 70 61 74 63 68 |ic then |dispatch|
|00003900| 0d 09 6d 6f 76 65 09 31 | 32 28 61 36 29 2c 64 30 |..move.1|2(a6),d0|
|00003910| 0d 09 63 6f 6d 70 61 72 | 65 09 64 30 2c 23 73 72 |..compar|e.d0,#sr|
|00003920| 63 42 69 63 0d 09 62 65 | 71 09 50 43 42 45 72 72 |cBic..be|q.PCBErr|
|00003930| 31 0d 09 63 6f 6d 70 61 | 72 65 09 64 30 2c 23 6e |1..compa|re.d0,#n|
|00003940| 6f 74 53 72 63 42 69 63 | 0d 09 62 65 71 09 50 43 |otSrcBic|..beq.PC|
|00003950| 42 45 72 72 31 0d 0d 3b | 20 69 66 20 73 72 63 42 |BErr1..;| if srcB|
|00003960| 69 74 73 20 72 6f 77 42 | 79 74 65 73 20 6e 6f 74 |its rowB|ytes not|
|00003970| 20 65 71 75 61 6c 20 74 | 6f 20 34 20 74 68 65 6e | equal t|o 4 then|
|00003980| 20 64 69 73 70 61 74 63 | 68 0d 09 6d 6f 76 65 2e | dispatc|h..move.|
|00003990| 6c 09 32 36 28 61 36 29 | 2c 61 30 09 3b 20 67 65 |l.26(a6)|,a0.; ge|
|000039a0| 74 20 73 72 63 42 69 74 | 73 0d 09 6d 6f 76 65 09 |t srcBit|s..move.|
|000039b0| 72 6f 77 42 79 74 65 73 | 28 61 30 29 2c 64 30 09 |rowBytes|(a0),d0.|
|000039c0| 3b 20 67 65 74 20 52 6f | 77 42 79 74 65 73 0d 09 |; get Ro|wBytes..|
|000039d0| 63 6f 6d 70 61 72 65 09 | 64 30 2c 23 34 0d 09 62 |compare.|d0,#4..b|
|000039e0| 6e 65 09 50 43 42 45 72 | 72 31 0d 0d 3b 20 69 66 |ne.PCBEr|r1..; if|
|000039f0| 20 64 73 74 42 69 74 73 | 20 69 73 20 6e 6f 74 20 | dstBits| is not |
|00003a00| 61 20 63 6f 6c 6f 72 20 | 62 69 74 6d 61 70 2c 20 |a color |bitmap, |
|00003a10| 64 69 73 70 61 74 63 68 | 0d 09 6d 6f 76 65 2e 6c |dispatch|..move.l|
|00003a20| 09 32 32 28 61 36 29 2c | 61 30 09 3b 20 67 65 74 |.22(a6),|a0.; get|
|00003a30| 20 64 73 74 42 69 74 73 | 0d 09 6d 6f 76 65 09 72 | dstBits|..move.r|
|00003a40| 6f 77 42 79 74 65 73 28 | 61 30 29 2c 64 30 09 3b |owBytes(|a0),d0.;|
|00003a50| 20 67 65 74 20 52 6f 77 | 42 79 74 65 73 0d 09 61 | get Row|Bytes..a|
|00003a60| 6e 64 09 23 24 63 30 30 | 30 2c 64 30 09 3b 20 73 |nd.#$c00|0,d0.; s|
|00003a70| 65 65 20 69 66 20 69 74 | 27 73 20 61 20 70 6f 72 |ee if it|'s a por|
|00003a80| 74 50 69 78 4d 61 70 20 | 68 61 6e 64 6c 65 0d 09 |tPixMap |handle..|
|00003a90| 63 6f 6d 70 61 72 65 09 | 64 30 2c 23 24 63 30 30 |compare.|d0,#$c00|
|00003aa0| 30 0d 09 62 65 71 09 50 | 43 42 43 6f 6e 74 31 09 |0..beq.P|CBCont1.|
|00003ab0| 3b 20 69 74 20 69 73 20 | 2d 2d 20 67 6f 20 61 68 |; it is |-- go ah|
|00003ac0| 65 61 64 2e 0d 09 0d 09 | 6d 6f 76 65 09 72 6f 77 |ead.....|move.row|
|00003ad0| 42 79 74 65 73 28 61 30 | 29 2c 64 30 09 3b 20 67 |Bytes(a0|),d0.; g|
|00003ae0| 65 74 20 52 6f 77 42 79 | 74 65 73 20 61 67 61 69 |et RowBy|tes agai|
|00003af0| 6e 0d 09 61 6e 64 09 23 | 24 65 30 30 30 2c 64 30 |n..and.#|$e000,d0|
|00003b00| 09 3b 20 63 68 65 63 6b | 20 66 6f 72 20 63 6f 6c |.; check| for col|
|00003b10| 6f 72 20 51 44 20 62 69 | 74 73 0d 09 62 65 71 09 |or QD bi|ts..beq.|
|00003b20| 50 43 42 45 72 72 31 09 | 09 3b 20 6e 6f 20 63 6f |PCBErr1.|.; no co|
|00003b30| 6c 6f 72 20 51 44 20 62 | 69 74 73 20 73 65 74 20 |lor QD b|its set |
|00003b40| 2d 20 62 6c 6f 77 20 69 | 74 20 6f 66 66 21 0d 0d |- blow i|t off!..|
|00003b50| 09 62 72 61 2e 73 09 50 | 43 42 43 6f 6e 74 32 0d |.bra.s.P|CBCont2.|
|00003b60| 0d 50 43 42 43 6f 6e 74 | 31 3a 0d 09 6d 6f 76 65 |.PCBCont|1:..move|
|00003b70| 2e 6c 09 28 61 30 29 2c | 61 30 09 09 3b 20 64 65 |.l.(a0),|a0..; de|
|00003b80| 72 65 66 65 72 65 6e 63 | 65 20 70 6f 72 74 50 69 |referenc|e portPi|
|00003b90| 78 4d 61 70 20 68 61 6e | 64 6c 65 0d 09 6d 6f 76 |xMap han|dle..mov|
|00003ba0| 65 2e 6c 09 28 61 30 29 | 2c 61 30 0d 09 0d 50 43 |e.l.(a0)|,a0...PC|
|00003bb0| 42 43 6f 6e 74 32 3a 09 | 3b 20 61 30 20 6e 6f 77 |BCont2:.|; a0 now|
|00003bc0| 20 70 6f 69 6e 74 73 20 | 74 6f 20 64 65 73 74 69 | points |to desti|
|00003bd0| 6e 61 74 69 6f 6e 20 70 | 69 78 4d 61 70 0d 0d 3b |nation p|ixMap..;|
|00003be0| 20 69 66 20 64 73 74 42 | 69 74 73 20 69 73 20 6c | if dstB|its is l|
|00003bf0| 65 73 73 20 74 68 61 6e | 20 32 20 62 69 74 73 20 |ess than| 2 bits |
|00003c00| 70 65 72 20 70 69 78 65 | 6c 2c 20 64 69 73 70 61 |per pixe|l, dispa|
|00003c10| 74 63 68 0d 09 6d 6f 76 | 65 09 33 32 28 61 30 29 |tch..mov|e.32(a0)|
|00003c20| 2c 64 30 09 3b 20 67 65 | 74 20 62 69 74 73 2d 70 |,d0.; ge|t bits-p|
|00003c30| 65 72 2d 70 69 78 65 6c | 0d 09 63 6f 6d 70 61 72 |er-pixel|..compar|
|00003c40| 65 09 64 30 2c 20 23 32 | 0d 09 62 6c 74 09 50 43 |e.d0, #2|..blt.PC|
|00003c50| 42 45 72 72 31 0d 0d 3b | 20 69 66 20 73 72 63 52 |BErr1..;| if srcR|
|00003c60| 65 63 74 20 6e 6f 74 20 | 65 71 75 61 6c 20 74 6f |ect not |equal to|
|00003c70| 20 28 30 2c 30 2c 33 32 | 2c 33 32 29 20 74 68 65 | (0,0,32|,32) the|
|00003c80| 6e 20 64 69 73 70 61 74 | 63 68 0d 09 6d 6f 76 65 |n dispat|ch..move|
|00003c90| 2e 6c 09 31 38 28 61 36 | 29 2c 61 30 09 3b 20 67 |.l.18(a6|),a0.; g|
|00003ca0| 65 74 20 73 72 63 52 65 | 63 74 20 70 74 72 0d 09 |et srcRe|ct ptr..|
|00003cb0| 6d 6f 76 65 2e 6c 09 28 | 61 30 29 2b 2c 64 30 09 |move.l.(|a0)+,d0.|
|00003cc0| 3b 20 67 65 74 20 74 6f | 70 20 6c 65 66 74 0d 09 |; get to|p left..|
|00003cd0| 62 6e 65 09 50 43 42 45 | 72 72 31 09 09 3b 20 6e |bne.PCBE|rr1..; n|
|00003ce0| 6f 6e 7a 65 72 6f 20 2d | 20 64 69 73 70 61 74 63 |onzero -| dispatc|
|00003cf0| 68 2e 0d 09 6d 6f 76 65 | 2e 6c 09 28 61 30 29 2c |h...move|.l.(a0),|
|00003d00| 64 30 09 09 3b 20 67 65 | 74 20 62 6f 74 74 6f 6d |d0..; ge|t bottom|
|00003d10| 20 72 69 67 68 74 0d 09 | 63 6f 6d 70 61 72 65 5f | right..|compare_|
|00003d20| 6c 20 64 30 2c 23 24 32 | 30 30 30 32 30 09 3b 20 |l d0,#$2|00020.; |
|00003d30| 63 6f 6d 70 61 72 65 20 | 74 6f 20 28 33 32 2c 20 |compare |to (32, |
|00003d40| 33 32 29 0d 09 62 6e 65 | 09 50 43 42 45 72 72 31 |32)..bne|.PCBErr1|
|00003d50| 09 09 3b 20 6e 6f 20 2d | 20 64 69 73 70 61 74 63 |..; no -| dispatc|
|00003d60| 68 2e 0d 0d 3b 20 69 66 | 20 73 72 63 42 69 74 73 |h...; if| srcBits|
|00003d70| 20 62 6f 75 6e 64 73 20 | 6e 6f 74 20 65 71 75 61 | bounds |not equa|
|00003d80| 6c 20 74 6f 20 28 30 2c | 30 2c 33 32 2c 33 32 29 |l to (0,|0,32,32)|
|00003d90| 20 74 68 65 6e 20 64 69 | 73 70 61 74 63 68 0d 09 | then di|spatch..|
|00003da0| 6d 6f 76 65 2e 6c 09 32 | 36 28 61 36 29 2c 61 30 |move.l.2|6(a6),a0|
|00003db0| 09 3b 20 67 65 74 20 73 | 72 63 42 69 74 73 0d 09 |.; get s|rcBits..|
|00003dc0| 6c 65 61 09 62 6f 75 6e | 64 73 28 61 30 29 2c 61 |lea.boun|ds(a0),a|
|00003dd0| 30 0d 09 6d 6f 76 65 2e | 6c 09 28 61 30 29 2b 2c |0..move.|l.(a0)+,|
|00003de0| 64 30 09 3b 20 67 65 74 | 20 74 6f 70 20 6c 65 66 |d0.; get| top lef|
|00003df0| 74 0d 09 62 6e 65 09 50 | 43 42 45 72 72 31 09 09 |t..bne.P|CBErr1..|
|00003e00| 3b 20 6e 6f 6e 7a 65 72 | 6f 20 2d 20 64 69 73 70 |; nonzer|o - disp|
|00003e10| 61 74 63 68 2e 0d 09 6d | 6f 76 65 2e 6c 09 28 61 |atch...m|ove.l.(a|
|00003e20| 30 29 2c 64 30 09 09 3b | 20 67 65 74 20 62 6f 74 |0),d0..;| get bot|
|00003e30| 74 6f 6d 20 72 69 67 68 | 74 0d 09 63 6f 6d 70 61 |tom righ|t..compa|
|00003e40| 72 65 5f 6c 20 64 30 2c | 23 24 32 30 30 30 32 30 |re_l d0,|#$200020|
|00003e50| 09 3b 20 63 6f 6d 70 61 | 72 65 20 74 6f 20 28 33 |.; compa|re to (3|
|00003e60| 32 2c 20 33 32 29 0d 09 | 62 6e 65 09 50 43 42 45 |2, 32)..|bne.PCBE|
|00003e70| 72 72 31 09 09 3b 20 6e | 6f 20 2d 20 64 69 73 70 |rr1..; n|o - disp|
|00003e80| 61 74 63 68 2e 0d 0d 3b | 20 73 65 61 72 63 68 20 |atch...;| search |
|00003e90| 66 6f 72 20 49 43 4e 23 | 20 69 6e 20 6f 75 72 20 |for ICN#| in our |
|00003ea0| 74 61 62 6c 65 0d 3b 20 | 69 66 20 6e 6f 74 20 66 |table.; |if not f|
|00003eb0| 6f 75 6e 64 0d 3b 09 64 | 69 73 70 61 74 63 68 0d |ound.;.d|ispatch.|
|00003ec0| 3b 20 63 61 6c 6c 20 50 | 6c 6f 74 43 49 63 6f 6e |; call P|lotCIcon|
|00003ed0| 0d 09 6d 6f 76 65 2e 6c | 09 32 36 28 61 36 29 2c |..move.l|.26(a6),|
|00003ee0| 61 30 09 3b 20 67 65 74 | 20 73 72 63 42 69 74 73 |a0.; get| srcBits|
|00003ef0| 20 61 67 61 69 6e 0d 09 | 63 6c 72 2e 6c 09 2d 28 | again..|clr.l.-(|
|00003f00| 73 70 29 09 09 3b 20 73 | 70 61 63 65 20 66 6f 72 |sp)..; s|pace for|
|00003f10| 20 72 65 74 75 72 6e 20 | 76 61 6c 75 65 0d 09 6d | return |value..m|
|00003f20| 6f 76 65 2e 6c 09 28 61 | 30 29 2c 2d 28 73 70 29 |ove.l.(a|0),-(sp)|
|00003f30| 09 3b 20 70 75 73 68 20 | 62 61 73 65 41 64 64 72 |.; push |baseAddr|
|00003f40| 20 6f 66 20 73 6f 75 72 | 63 65 20 62 69 74 6d 61 | of sour|ce bitma|
|00003f50| 70 0d 09 62 73 72 09 50 | 47 52 4c 6f 6f 6b 75 70 |p..bsr.P|GRLookup|
|00003f60| 0d 09 6d 6f 76 65 2e 6c | 09 28 73 70 29 2b 2c 61 |..move.l|.(sp)+,a|
|00003f70| 30 09 3b 20 67 65 74 20 | 72 65 73 75 6c 74 0d 09 |0.; get |result..|
|00003f80| 6d 6f 76 65 2e 6c 09 61 | 30 2c 64 30 09 09 3b 20 |move.l.a|0,d0..; |
|00003f90| 69 73 20 69 74 20 4e 49 | 4c 3f 0d 09 74 73 74 2e |is it NI|L?..tst.|
|00003fa0| 6c 09 64 30 0d 09 62 65 | 71 09 50 43 42 45 72 72 |l.d0..be|q.PCBErr|
|00003fb0| 31 09 09 3b 20 79 65 70 | 2c 20 6e 6f 20 63 6f 6c |1..; yep|, no col|
|00003fc0| 6f 72 20 69 63 6f 6e 2c | 20 73 6f 20 64 69 73 70 |or icon,| so disp|
|00003fd0| 61 74 63 68 2e 0d 09 0d | 09 61 64 64 61 2e 6c 09 |atch....|.adda.l.|
|00003fe0| 23 43 49 43 4e 5f 4f 46 | 46 53 45 54 2c 61 30 09 |#CICN_OF|FSET,a0.|
|00003ff0| 3b 20 67 65 74 20 70 74 | 72 20 74 6f 20 63 69 63 |; get pt|r to cic|
|00004000| 6e 0d 09 6d 6f 76 65 2e | 6c 09 31 34 28 61 36 29 |n..move.|l.14(a6)|
|00004010| 2c 2d 28 73 70 29 09 3b | 20 75 73 65 20 74 68 65 |,-(sp).;| use the|
|00004020| 20 64 73 74 52 65 63 74 | 20 74 68 61 74 20 74 68 | dstRect| that th|
|00004030| 65 79 20 67 61 76 65 20 | 75 73 0d 09 6d 6f 76 65 |ey gave |us..move|
|00004040| 2e 6c 09 61 30 2c 2d 28 | 73 70 29 09 3b 20 70 6f |.l.a0,-(|sp).; po|
|00004050| 69 6e 74 65 72 20 74 6f | 20 63 69 63 6e 20 72 65 |inter to| cicn re|
|00004060| 73 6f 75 72 63 65 20 73 | 74 72 75 63 74 75 72 65 |source s|tructure|
|00004070| 0d 09 6d 6f 76 65 09 31 | 32 28 61 36 29 2c 2d 28 |..move.1|2(a6),-(|
|00004080| 73 70 29 09 3b 20 74 72 | 61 6e 73 66 65 72 20 6d |sp).; tr|ansfer m|
|00004090| 6f 64 65 0d 09 62 73 72 | 09 50 43 42 50 6c 6f 74 |ode..bsr|.PCBPlot|
|000040a0| 49 74 0d 09 0d 3b 20 45 | 78 69 74 20 70 6f 69 6e |It...; E|xit poin|
|000040b0| 74 20 66 6f 72 20 72 65 | 74 75 72 6e 69 6e 67 20 |t for re|turning |
|000040c0| 77 69 74 68 6f 75 74 20 | 64 69 73 70 61 74 63 68 |without |dispatch|
|000040d0| 69 6e 67 2e 0d 3b 0d 50 | 43 42 45 72 72 32 3a 0d |ing..;.P|CBErr2:.|
|000040e0| 09 6d 6f 76 65 2e 6c 09 | 34 28 61 36 29 2c 32 36 |.move.l.|4(a6),26|
|000040f0| 28 61 36 29 09 3b 20 63 | 6f 70 79 20 74 68 65 69 |(a6).; c|opy thei|
|00004100| 72 20 72 65 74 75 72 6e | 20 61 64 64 72 65 73 73 |r return| address|
|00004110| 20 74 6f 20 74 6f 70 20 | 34 20 62 79 74 65 73 20 | to top |4 bytes |
|00004120| 6f 66 0d 09 09 09 09 3b | 20 6f 72 69 67 69 6e 61 |of.....;| origina|
|00004130| 6c 20 70 61 72 61 6d 65 | 74 65 72 73 2e 0d 09 6d |l parame|ters...m|
|00004140| 6f 76 65 6d 2e 6c 09 28 | 73 70 29 2b 2c 64 30 2d |ovem.l.(|sp)+,d0-|
|00004150| 64 37 2f 61 30 2d 61 34 | 20 3b 20 72 65 73 74 6f |d7/a0-a4| ; resto|
|00004160| 72 65 20 72 65 67 73 0d | 09 75 6e 6c 6b 09 61 36 |re regs.|.unlk.a6|
|00004170| 09 09 3b 20 72 65 73 74 | 6f 72 65 20 61 36 0d 09 |..; rest|ore a6..|
|00004180| 6c 65 61 09 32 32 28 73 | 70 29 2c 73 70 09 3b 20 |lea.22(s|p),sp.; |
|00004190| 64 69 73 63 61 72 64 20 | 32 32 20 62 79 74 65 73 |discard |22 bytes|
|000041a0| 20 77 6f 72 74 68 20 6f | 66 20 73 74 61 63 6b 20 | worth o|f stack |
|000041b0| 28 63 6f 72 72 65 73 70 | 6f 6e 64 73 0d 09 09 09 |(corresp|onds....|
|000041c0| 09 3b 20 74 6f 20 74 68 | 65 20 32 32 20 62 79 74 |.; to th|e 22 byt|
|000041d0| 65 73 20 6f 66 20 70 61 | 72 61 6d 65 74 65 72 73 |es of pa|rameters|
|000041e0| 20 74 68 61 74 20 6f 75 | 72 0d 09 09 09 09 3b 20 | that ou|r.....; |
|000041f0| 6f 72 69 67 69 6e 61 6c | 20 63 61 6c 6c 20 68 61 |original| call ha|
|00004200| 64 2e 29 0d 09 72 74 73 | 09 09 09 3b 20 72 65 74 |d.)..rts|...; ret|
|00004210| 75 72 6e 20 74 6f 20 6f | 72 69 67 69 6e 61 6c 20 |urn to o|riginal |
|00004220| 72 65 74 75 72 6e 20 61 | 64 64 72 65 73 73 2e 0d |return a|ddress..|
|00004230| 0d 3b 20 45 78 69 74 20 | 70 6f 69 6e 74 20 66 6f |.; Exit |point fo|
|00004240| 72 20 64 69 73 70 61 74 | 63 68 69 6e 67 20 74 6f |r dispat|ching to|
|00004250| 20 43 6f 70 79 42 69 74 | 73 0d 3b 0d 50 43 42 45 | CopyBit|s.;.PCBE|
|00004260| 72 72 31 3a 0d 09 6d 6f | 76 65 6d 2e 6c 09 28 73 |rr1:..mo|vem.l.(s|
|00004270| 70 29 2b 2c 64 30 2d 64 | 37 2f 61 30 2d 61 34 0d |p)+,d0-d|7/a0-a4.|
|00004280| 09 75 6e 6c 6b 09 61 36 | 0d 09 6d 6f 76 65 2e 6c |.unlk.a6|..move.l|
|00004290| 09 50 43 42 53 61 76 65 | 2c 20 2d 28 73 70 29 0d |.PCBSave|, -(sp).|
|000042a0| 09 72 74 73 0d 0d 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |.rts..;;|;;;;;;;;|
|000042b0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000042c0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000042d0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000042e0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000042f0| 3b 3b 3b 3b 3b 0d 3b 0d | 3b 20 20 50 43 42 2e 50 |;;;;;.;.|; PCB.P|
|00004300| 6c 6f 74 49 74 09 2d 20 | 73 65 74 20 75 70 20 63 |lotIt.- |set up c|
|00004310| 69 63 6e 20 73 74 72 75 | 63 74 75 72 65 73 20 61 |icn stru|ctures a|
|00004320| 6e 64 20 63 61 6c 6c 20 | 50 6c 6f 74 43 49 63 6f |nd call |PlotCIco|
|00004330| 6e 0d 3b 0d 3b 20 20 20 | 20 20 54 68 69 73 20 72 |n.;.; | This r|
|00004340| 6f 75 74 69 6e 65 20 74 | 61 6b 65 73 20 61 20 70 |outine t|akes a p|
|00004350| 6f 69 6e 74 65 72 20 74 | 6f 20 61 6e 20 49 43 4f |ointer t|o an ICO|
|00004360| 4e 2f 63 69 63 6e 20 72 | 65 63 6f 72 64 20 61 6e |N/cicn r|ecord an|
|00004370| 64 20 70 6c 6f 74 73 20 | 74 68 65 20 63 69 63 6e |d plots |the cicn|
|00004380| 0d 3b 20 6f 6e 20 74 68 | 65 20 73 63 72 65 65 6e |.; on th|e screen|
|00004390| 2c 20 67 69 76 65 6e 20 | 61 20 72 65 63 74 61 6e |, given |a rectan|
|000043a0| 67 6c 65 2e 20 20 49 74 | 20 77 6f 72 6b 73 20 61 |gle. It| works a|
|000043b0| 73 20 66 6f 6c 6c 6f 77 | 73 3a 0d 3b 0d 3b 20 63 |s follow|s:.;.; c|
|000043c0| 6f 6d 70 75 74 65 20 69 | 63 6f 6e 20 68 65 69 67 |ompute i|con heig|
|000043d0| 68 74 20 69 6e 20 70 69 | 78 65 6c 73 0d 3b 20 63 |ht in pi|xels.; c|
|000043e0| 6f 6d 70 75 74 65 20 6f | 66 66 73 65 74 73 20 66 |ompute o|ffsets f|
|000043f0| 6f 72 20 4d 61 73 6b 44 | 61 74 61 20 61 6e 64 20 |or MaskD|ata and |
|00004400| 42 4d 61 70 44 61 74 61 | 2c 20 61 6e 64 20 74 6f |BMapData|, and to|
|00004410| 74 61 6c 20 6c 65 6e 67 | 74 68 20 6f 66 20 65 76 |tal leng|th of ev|
|00004420| 65 72 79 74 68 69 6e 67 | 0d 3b 20 20 20 75 70 20 |erything|.; up |
|00004430| 74 6f 20 74 68 65 20 65 | 6e 64 20 6f 66 20 74 68 |to the e|nd of th|
|00004440| 65 20 42 4d 61 70 44 61 | 74 61 0d 3b 20 69 66 20 |e BMapDa|ta.; if |
|00004450| 74 6f 6f 20 6c 6f 6e 67 | 2c 20 64 69 73 70 61 74 |too long|, dispat|
|00004460| 63 68 0d 3b 20 63 6f 6d | 70 75 74 65 20 6f 66 66 |ch.; com|pute off|
|00004470| 73 65 74 20 61 6e 64 20 | 6c 65 6e 67 74 68 20 6f |set and |length o|
|00004480| 66 20 50 4d 61 70 43 54 | 61 62 0d 3b 20 69 66 20 |f PMapCT|ab.; if |
|00004490| 63 6f 6c 6f 72 20 74 61 | 62 6c 65 20 74 6f 6f 20 |color ta|ble too |
|000044a0| 62 69 67 2c 20 64 69 73 | 70 61 74 63 68 0d 3b 20 |big, dis|patch.; |
|000044b0| 63 6f 6d 70 75 74 65 20 | 6f 66 66 73 65 74 20 61 |compute |offset a|
|000044c0| 6e 64 20 6c 65 6e 67 74 | 68 20 66 6f 72 20 63 69 |nd lengt|h for ci|
|000044d0| 63 6e 20 69 6d 61 67 65 | 20 64 61 74 61 0d 3b 20 |cn image| data.; |
|000044e0| 69 66 20 63 69 63 6e 20 | 69 6d 61 67 65 20 64 61 |if cicn |image da|
|000044f0| 74 61 20 74 6f 6f 20 6c | 61 72 67 65 2c 20 64 69 |ta too l|arge, di|
|00004500| 73 70 61 74 63 68 0d 3b | 20 63 6f 70 79 20 63 69 |spatch.;| copy ci|
|00004510| 63 6e 20 69 6d 61 67 65 | 20 64 61 74 61 20 69 6e |cn image| data in|
|00004520| 74 6f 20 73 63 72 61 74 | 63 68 20 69 6d 61 67 65 |to scrat|ch image|
|00004530| 20 73 70 61 63 65 0d 3b | 20 63 6f 70 79 20 63 6f | space.;| copy co|
|00004540| 6c 6f 72 20 74 61 62 6c | 65 20 64 61 74 61 20 69 |lor tabl|e data i|
|00004550| 6e 74 6f 20 73 63 72 61 | 74 63 68 20 63 74 61 62 |nto scra|tch ctab|
|00004560| 20 73 70 61 63 65 0d 3b | 20 63 6f 70 79 20 72 65 | space.;| copy re|
|00004570| 73 74 20 6f 66 20 69 74 | 20 69 6e 74 6f 20 73 63 |st of it| into sc|
|00004580| 72 61 74 63 68 20 63 69 | 63 6e 20 73 70 61 63 65 |ratch ci|cn space|
|00004590| 0d 3b 20 66 69 6c 6c 20 | 69 6e 20 66 69 65 6c 64 |.; fill |in field|
|000045a0| 73 20 6f 66 20 63 69 63 | 6e 3a 20 63 69 63 6e 20 |s of cic|n: cicn |
|000045b0| 42 61 73 65 41 64 64 72 | 2c 20 69 63 6f 6e 20 50 |BaseAddr|, icon P|
|000045c0| 4d 54 61 62 6c 65 2c 20 | 6d 61 73 6b 20 42 61 73 |MTable, |mask Bas|
|000045d0| 65 41 64 64 72 2c 20 42 | 4d 61 70 0d 3b 20 20 20 |eAddr, B|Map.; |
|000045e0| 42 61 73 65 41 64 64 72 | 2c 20 49 63 6f 6e 44 61 |BaseAddr|, IconDa|
|000045f0| 74 61 20 68 61 6e 64 6c | 65 0d 3b 20 63 61 6c 6c |ta handl|e.; call|
|00004600| 20 50 6c 6f 74 43 49 63 | 6f 6e 0d 3b 0d 3b 20 20 | PlotCIc|on.;.; |
|00004610| 20 20 20 54 68 69 73 20 | 69 73 20 61 20 73 74 61 | This |is a sta|
|00004620| 63 6b 2d 62 61 73 65 64 | 20 72 6f 75 74 69 6e 65 |ck-based| routine|
|00004630| 3a 0d 3b 0d 3b 20 70 61 | 73 63 61 6c 20 76 6f 69 |:.;.; pa|scal voi|
|00004640| 64 20 50 43 42 50 6c 6f | 74 49 74 28 50 6f 69 6e |d PCBPlo|tIt(Poin|
|00004650| 74 65 72 20 74 68 65 5f | 72 65 63 74 2c 20 50 6f |ter the_|rect, Po|
|00004660| 69 6e 74 65 72 20 74 68 | 65 5f 69 63 6f 6e 2c 20 |inter th|e_icon, |
|00004670| 77 6f 72 64 20 6d 6f 64 | 65 29 3b 0d 3b 0d 3b 20 |word mod|e);.;.; |
|00004680| 4e 6f 74 65 73 3a 0d 3b | 20 31 29 20 20 41 6c 74 |Notes:.;| 1) Alt|
|00004690| 68 6f 75 67 68 20 74 68 | 69 73 20 72 6f 75 74 69 |hough th|is routi|
|000046a0| 6e 65 20 68 61 6e 64 6c | 65 73 20 69 63 6f 6e 73 |ne handl|es icons|
|000046b0| 20 6f 66 20 61 6e 79 20 | 70 69 78 65 6c 2d 73 69 | of any |pixel-si|
|000046c0| 7a 65 20 28 6e 6f 74 20 | 6a 75 73 74 20 33 32 78 |ze (not |just 32x|
|000046d0| 33 32 29 2c 0d 3b 20 69 | 74 20 61 73 73 75 6d 65 |32),.; i|t assume|
|000046e0| 73 20 74 68 61 74 20 74 | 68 65 20 68 65 69 67 68 |s that t|he heigh|
|000046f0| 74 20 6f 66 20 61 6c 6c | 20 74 68 72 65 65 20 69 |t of all| three i|
|00004700| 63 6f 6e 73 20 28 42 2f | 57 20 69 63 6f 6e 2c 20 |cons (B/|W icon, |
|00004710| 6d 61 73 6b 2c 20 61 6e | 64 20 63 6f 6c 6f 72 0d |mask, an|d color.|
|00004720| 3b 20 69 63 6f 6e 29 20 | 69 73 20 74 68 65 20 73 |; icon) |is the s|
|00004730| 61 6d 65 2e 20 20 49 74 | 20 63 6f 75 6c 64 20 62 |ame. It| could b|
|00004740| 65 20 6d 61 64 65 20 6d | 6f 72 65 20 72 6f 62 75 |e made m|ore robu|
|00004750| 73 74 20 62 79 20 6c 6f | 6f 6b 69 6e 67 20 61 74 |st by lo|oking at|
|00004760| 20 74 68 65 20 49 63 6f | 6e 4d 61 73 6b 0d 3b 20 | the Ico|nMask.; |
|00004770| 61 6e 64 20 49 63 6f 6e | 42 4d 61 70 20 62 6f 75 |and Icon|BMap bou|
|00004780| 6e 64 73 20 72 65 63 74 | 61 6e 67 6c 65 73 20 61 |nds rect|angles a|
|00004790| 6e 64 20 74 72 65 61 74 | 69 6e 67 20 74 68 65 6d |nd treat|ing them|
|000047a0| 20 73 65 70 65 72 61 74 | 65 6c 79 2e 0d 3b 0d 3b | seperat|ely..;.;|
|000047b0| 20 32 29 20 20 54 68 65 | 20 43 6f 70 79 42 69 74 | 2) The| CopyBit|
|000047c0| 73 20 70 61 74 63 68 20 | 74 68 61 74 20 63 61 6c |s patch |that cal|
|000047d0| 6c 73 20 75 73 20 63 68 | 65 63 6b 73 20 73 70 65 |ls us ch|ecks spe|
|000047e0| 63 69 66 69 63 61 6c 6c | 79 20 66 6f 72 20 33 32 |cificall|y for 32|
|000047f0| 78 33 32 20 69 63 6f 6e | 73 2e 0d 3b 20 54 68 69 |x32 icon|s..; Thi|
|00004800| 73 20 6d 65 61 6e 73 20 | 74 68 61 74 20 69 66 20 |s means |that if |
|00004810| 6f 75 72 20 27 63 69 63 | 6e 27 20 69 73 20 6e 6f |our 'cic|n' is no|
|00004820| 74 20 33 32 78 33 32 2c | 20 69 74 20 77 69 6c 6c |t 32x32,| it will|
|00004830| 20 6f 6e 6c 79 20 67 65 | 74 20 70 6c 6f 74 74 65 | only ge|t plotte|
|00004840| 64 20 6f 6e 0d 3b 20 50 | 6c 6f 74 49 63 6f 6e 20 |d on.; P|lotIcon |
|00004850| 63 61 6c 6c 73 2e 0d 3b | 0d 50 43 42 50 6c 6f 74 |calls..;|.PCBPlot|
|00004860| 49 74 3a 0d 09 53 54 41 | 43 4b 5f 44 45 43 4c 41 |It:..STA|CK_DECLA|
|00004870| 52 45 0d 09 4c 4f 4e 47 | 5f 50 41 52 41 4d 09 72 |RE..LONG|_PARAM.r|
|00004880| 65 63 74 70 74 72 0d 09 | 4c 4f 4e 47 5f 50 41 52 |ectptr..|LONG_PAR|
|00004890| 41 4d 09 63 69 63 6e 70 | 74 72 0d 09 57 4f 52 44 |AM.cicnp|tr..WORD|
|000048a0| 5f 50 41 52 41 4d 09 6d | 6f 64 65 0d 09 53 54 41 |_PARAM.m|ode..STA|
|000048b0| 43 4b 5f 42 45 47 49 4e | 0d 09 53 41 56 45 5f 41 |CK_BEGIN|..SAVE_A|
|000048c0| 4c 4c 0d 09 0d 09 6d 6f | 76 65 2e 6c 09 61 34 73 |LL....mo|ve.l.a4s|
|000048d0| 61 76 65 28 70 63 29 2c | 61 34 09 3b 20 73 65 74 |ave(pc),|a4.; set|
|000048e0| 20 75 70 20 61 34 0d 09 | 0d 3b 20 63 6f 6d 70 75 | up a4..|.; compu|
|000048f0| 74 65 20 69 63 6f 6e 20 | 68 65 69 67 68 74 20 69 |te icon |height i|
|00004900| 6e 20 70 69 78 65 6c 73 | 0d 09 6d 6f 76 65 2e 6c |n pixels|..move.l|
|00004910| 09 70 61 72 6d 5f 63 69 | 63 6e 70 74 72 28 61 36 |.parm_ci|cnptr(a6|
|00004920| 29 2c 61 33 09 3b 20 73 | 65 74 20 75 70 20 70 6f |),a3.; s|et up po|
|00004930| 69 6e 74 65 72 20 74 6f | 20 74 68 65 20 73 74 72 |inter to| the str|
|00004940| 75 63 74 75 72 65 0d 09 | 6d 6f 76 65 09 36 2b 34 |ucture..|move.6+4|
|00004950| 28 61 33 29 2c 64 30 09 | 09 3b 20 67 65 74 20 50 |(a3),d0.|.; get P|
|00004960| 4d 61 70 20 62 6f 75 6e | 64 73 20 62 6f 74 74 6f |Map boun|ds botto|
|00004970| 6d 0d 09 73 75 62 09 36 | 28 61 33 29 2c 64 30 09 |m..sub.6|(a3),d0.|
|00004980| 09 3b 20 73 75 62 74 72 | 61 63 74 20 62 6f 75 6e |.; subtr|act boun|
|00004990| 64 73 20 74 6f 70 0d 09 | 6d 6f 76 65 09 64 30 2c |ds top..|move.d0,|
|000049a0| 70 63 62 48 65 69 67 68 | 74 28 61 34 29 09 3b 20 |pcbHeigh|t(a4).; |
|000049b0| 73 61 76 65 20 69 74 0d | 09 0d 3b 20 63 6f 6d 70 |save it.|..; comp|
|000049c0| 75 74 65 20 6f 66 66 73 | 65 74 73 20 66 6f 72 20 |ute offs|ets for |
|000049d0| 4d 61 73 6b 44 61 74 61 | 20 61 6e 64 20 42 4d 61 |MaskData| and BMa|
|000049e0| 70 44 61 74 61 2c 20 61 | 6e 64 20 74 6f 74 61 6c |pData, a|nd total|
|000049f0| 20 6c 65 6e 67 74 68 20 | 6f 66 20 65 76 65 72 79 | length |of every|
|00004a00| 74 68 69 6e 67 0d 3b 20 | 20 20 75 70 20 74 6f 20 |thing.; | up to |
|00004a10| 74 68 65 20 65 6e 64 20 | 6f 66 20 74 68 65 20 42 |the end |of the B|
|00004a20| 4d 61 70 44 61 74 61 0d | 09 3b 20 28 6f 66 66 73 |MapData.|.; (offs|
|00004a30| 65 74 20 66 6f 72 20 4d | 61 73 6b 44 61 74 61 20 |et for M|askData |
|00004a40| 69 73 20 61 6c 77 61 79 | 73 20 38 32 29 0d 09 6d |is alway|s 82)..m|
|00004a50| 6f 76 65 09 23 38 32 2c | 64 30 09 09 09 3b 20 6d |ove.#82,|d0...; m|
|00004a60| 61 73 6b 64 61 74 61 20 | 6f 66 66 73 65 74 0d 09 |askdata |offset..|
|00004a70| 6d 6f 76 65 09 35 34 28 | 61 33 29 2c 64 31 09 09 |move.54(|a3),d1..|
|00004a80| 3b 20 67 65 74 20 6d 61 | 73 6b 64 61 74 61 20 72 |; get ma|skdata r|
|00004a90| 6f 77 42 79 74 65 73 0d | 09 61 6e 64 09 23 24 31 |owBytes.|.and.#$1|
|00004aa0| 66 66 66 2c 64 31 09 09 | 3b 20 6d 61 73 6b 20 6f |fff,d1..|; mask o|
|00004ab0| 75 74 20 63 6f 6c 6f 72 | 20 51 44 20 62 69 74 73 |ut color| QD bits|
|00004ac0| 0d 09 6d 75 6c 75 09 70 | 63 62 48 65 69 67 68 74 |..mulu.p|cbHeight|
|00004ad0| 28 61 34 29 2c 64 31 09 | 3b 20 6d 75 6c 74 69 70 |(a4),d1.|; multip|
|00004ae0| 6c 79 20 62 79 20 69 63 | 6f 6e 20 68 65 69 67 68 |ly by ic|on heigh|
|00004af0| 74 0d 09 61 64 64 09 64 | 31 2c 64 30 09 09 09 3b |t..add.d|1,d0...;|
|00004b00| 20 61 64 64 20 74 68 69 | 73 2e 0d 09 6d 6f 76 65 | add thi|s...move|
|00004b10| 09 64 30 2c 70 63 62 42 | 6d 61 70 4f 66 66 73 65 |.d0,pcbB|mapOffse|
|00004b20| 74 28 61 34 29 09 3b 20 | 73 61 76 65 20 6f 66 66 |t(a4).; |save off|
|00004b30| 73 65 74 20 66 6f 72 20 | 75 73 65 20 6c 61 74 65 |set for |use late|
|00004b40| 72 2e 0d 0d 09 6d 6f 76 | 65 09 36 38 28 61 33 29 |r....mov|e.68(a3)|
|00004b50| 2c 64 31 09 09 3b 20 67 | 65 74 20 62 6d 61 70 20 |,d1..; g|et bmap |
|00004b60| 72 6f 77 42 79 74 65 73 | 0d 09 61 6e 64 09 23 24 |rowBytes|..and.#$|
|00004b70| 31 66 66 66 2c 64 31 09 | 09 3b 20 6d 61 73 6b 20 |1fff,d1.|.; mask |
|00004b80| 6f 75 74 20 63 6f 6c 6f | 72 20 51 44 20 62 69 74 |out colo|r QD bit|
|00004b90| 73 0d 09 6d 75 6c 75 09 | 70 63 62 48 65 69 67 68 |s..mulu.|pcbHeigh|
|00004ba0| 74 28 61 34 29 2c 64 31 | 09 3b 20 6d 75 6c 74 69 |t(a4),d1|.; multi|
|00004bb0| 70 6c 79 20 62 79 20 69 | 63 6f 6e 20 68 65 69 67 |ply by i|con heig|
|00004bc0| 68 74 0d 09 61 64 64 09 | 64 31 2c 64 30 09 09 09 |ht..add.|d1,d0...|
|00004bd0| 3b 20 61 64 64 20 74 68 | 69 73 2e 0d 09 6d 6f 76 |; add th|is...mov|
|00004be0| 65 09 64 30 2c 70 63 62 | 43 69 63 6e 4c 65 6e 67 |e.d0,pcb|CicnLeng|
|00004bf0| 74 68 28 61 34 29 09 3b | 20 73 61 76 65 20 6c 65 |th(a4).;| save le|
|00004c00| 6e 67 74 68 20 66 6f 72 | 20 75 73 65 20 6c 61 74 |ngth for| use lat|
|00004c10| 65 72 2e 0d 0d 3b 20 69 | 66 20 74 6f 6f 20 6c 6f |er...; i|f too lo|
|00004c20| 6e 67 2c 20 64 69 73 70 | 61 74 63 68 0d 09 63 6f |ng, disp|atch..co|
|00004c30| 6d 70 61 72 65 09 64 30 | 2c 23 4d 41 58 5f 43 49 |mpare.d0|,#MAX_CI|
|00004c40| 43 4e 0d 09 62 67 65 09 | 50 43 42 47 69 76 65 55 |CN..bge.|PCBGiveU|
|00004c50| 70 0d 0d 3b 20 63 6f 6d | 70 75 74 65 20 6f 66 66 |p..; com|pute off|
|00004c60| 73 65 74 20 61 6e 64 20 | 6c 65 6e 67 74 68 20 6f |set and |length o|
|00004c70| 66 20 50 4d 61 70 43 54 | 61 62 0d 09 3b 20 28 6f |f PMapCT|ab..; (o|
|00004c80| 66 66 73 65 74 20 69 73 | 20 74 68 65 20 73 61 6d |ffset is| the sam|
|00004c90| 65 20 61 73 20 74 68 65 | 20 6c 65 6e 67 74 68 20 |e as the| length |
|00004ca0| 77 65 20 6a 75 73 74 20 | 63 6f 6d 70 75 74 65 64 |we just |computed|
|00004cb0| 29 0d 09 6d 6f 76 65 2e | 6c 09 61 33 2c 61 31 09 |)..move.|l.a3,a1.|
|00004cc0| 09 09 3b 20 67 65 74 20 | 70 74 72 20 74 6f 20 73 |..; get |ptr to s|
|00004cd0| 74 72 75 63 74 75 72 65 | 0d 09 61 64 64 61 09 64 |tructure|..adda.d|
|00004ce0| 30 2c 61 31 09 09 09 3b | 20 70 6f 69 6e 74 20 74 |0,a1...;| point t|
|00004cf0| 6f 20 63 6f 6c 6f 72 20 | 74 61 62 6c 65 0d 09 6d |o color |table..m|
|00004d00| 6f 76 65 09 36 28 61 31 | 29 2c 64 30 09 09 3b 20 |ove.6(a1|),d0..; |
|00004d10| 67 65 74 20 63 74 53 69 | 7a 65 0d 09 61 64 64 71 |get ctSi|ze..addq|
|00004d20| 09 23 31 2c 64 30 09 09 | 09 3b 20 61 64 64 20 31 |.#1,d0..|.; add 1|
|00004d30| 0d 09 61 73 6c 09 23 33 | 2c 64 30 09 09 09 3b 20 |..asl.#3|,d0...; |
|00004d40| 6d 75 6c 74 69 70 6c 79 | 20 62 79 20 38 0d 09 61 |multiply| by 8..a|
|00004d50| 64 64 71 09 23 38 2c 64 | 30 09 09 09 3b 20 61 64 |ddq.#8,d|0...; ad|
|00004d60| 64 20 38 20 66 6f 72 20 | 66 69 72 73 74 20 74 68 |d 8 for |first th|
|00004d70| 72 65 65 20 66 69 65 6c | 64 73 0d 09 6d 6f 76 65 |ree fiel|ds..move|
|00004d80| 09 64 30 2c 70 63 62 43 | 74 61 62 4c 65 6e 67 74 |.d0,pcbC|tabLengt|
|00004d90| 68 28 61 34 29 09 3b 20 | 73 61 76 65 20 69 74 0d |h(a4).; |save it.|
|00004da0| 09 0d 3b 20 69 66 20 63 | 6f 6c 6f 72 20 74 61 62 |..; if c|olor tab|
|00004db0| 6c 65 20 74 6f 6f 20 62 | 69 67 2c 20 64 69 73 70 |le too b|ig, disp|
|00004dc0| 61 74 63 68 0d 09 63 6f | 6d 70 61 72 65 09 64 30 |atch..co|mpare.d0|
|00004dd0| 2c 23 4d 41 58 5f 43 54 | 41 42 0d 09 62 67 65 09 |,#MAX_CT|AB..bge.|
|00004de0| 50 43 42 47 69 76 65 55 | 70 0d 0d 3b 20 63 6f 6d |PCBGiveU|p..; com|
|00004df0| 70 75 74 65 20 6f 66 66 | 73 65 74 20 61 6e 64 20 |pute off|set and |
|00004e00| 6c 65 6e 67 74 68 20 66 | 6f 72 20 63 69 63 6e 20 |length f|or cicn |
|00004e10| 69 6d 61 67 65 20 64 61 | 74 61 0d 09 6d 6f 76 65 |image da|ta..move|
|00004e20| 09 34 28 61 33 29 2c 64 | 30 09 09 3b 20 67 65 74 |.4(a3),d|0..; get|
|00004e30| 20 70 6d 61 70 20 72 6f | 77 62 79 74 65 73 0d 09 | pmap ro|wbytes..|
|00004e40| 61 6e 64 09 23 24 31 66 | 66 66 2c 64 30 09 09 3b |and.#$1f|ff,d0..;|
|00004e50| 20 6d 61 73 6b 20 6f 75 | 74 20 63 6f 6c 6f 72 20 | mask ou|t color |
|00004e60| 51 44 20 62 69 74 73 0d | 09 6d 75 6c 75 09 70 63 |QD bits.|.mulu.pc|
|00004e70| 62 48 65 69 67 68 74 28 | 61 34 29 2c 64 30 09 3b |bHeight(|a4),d0.;|
|00004e80| 20 6d 75 6c 74 69 70 6c | 79 20 62 79 20 69 63 6f | multipl|y by ico|
|00004e90| 6e 20 68 65 69 67 68 74 | 0d 09 6d 6f 76 65 09 64 |n height|..move.d|
|00004ea0| 30 2c 70 63 62 49 6d 61 | 67 65 4c 65 6e 67 74 68 |0,pcbIma|geLength|
|00004eb0| 28 61 34 29 09 3b 20 73 | 61 76 65 20 69 74 0d 0d |(a4).; s|ave it..|
|00004ec0| 3b 20 69 66 20 63 69 63 | 6e 20 69 6d 61 67 65 20 |; if cic|n image |
|00004ed0| 64 61 74 61 20 74 6f 6f | 20 6c 61 72 67 65 2c 20 |data too| large, |
|00004ee0| 64 69 73 70 61 74 63 68 | 0d 09 63 6f 6d 70 61 72 |dispatch|..compar|
|00004ef0| 65 09 64 30 2c 23 4d 41 | 58 5f 49 4d 41 47 45 0d |e.d0,#MA|X_IMAGE.|
|00004f00| 09 62 67 65 09 50 43 42 | 47 69 76 65 55 70 0d 0d |.bge.PCB|GiveUp..|
|00004f10| 3b 20 63 6f 70 79 20 63 | 69 63 6e 20 69 6d 61 67 |; copy c|icn imag|
|00004f20| 65 20 64 61 74 61 20 69 | 6e 74 6f 20 73 63 72 61 |e data i|nto scra|
|00004f30| 74 63 68 20 69 6d 61 67 | 65 20 73 70 61 63 65 0d |tch imag|e space.|
|00004f40| 09 6d 6f 76 65 09 70 63 | 62 43 69 63 6e 4c 65 6e |.move.pc|bCicnLen|
|00004f50| 67 74 68 28 61 34 29 2c | 64 30 09 3b 20 67 65 74 |gth(a4),|d0.; get|
|00004f60| 20 63 74 61 62 20 6f 66 | 66 73 65 74 0d 09 61 64 | ctab of|fset..ad|
|00004f70| 64 09 70 63 62 43 74 61 | 62 4c 65 6e 67 74 68 28 |d.pcbCta|bLength(|
|00004f80| 61 34 29 2c 64 30 09 3b | 20 61 64 64 20 63 74 61 |a4),d0.;| add cta|
|00004f90| 62 20 73 69 7a 65 20 74 | 6f 20 67 65 74 20 69 6d |b size t|o get im|
|00004fa0| 61 67 65 20 6f 66 66 73 | 65 74 0d 09 6d 6f 76 65 |age offs|et..move|
|00004fb0| 2e 6c 09 61 33 2c 61 30 | 09 09 09 3b 20 70 6f 69 |.l.a3,a0|...; poi|
|00004fc0| 6e 74 65 72 20 74 6f 20 | 77 68 6f 6c 65 20 73 74 |nter to |whole st|
|00004fd0| 72 75 63 74 75 72 65 0d | 09 61 64 64 61 09 64 30 |ructure.|.adda.d0|
|00004fe0| 2c 61 30 09 09 09 3b 20 | 6e 6f 77 20 70 6f 69 6e |,a0...; |now poin|
|00004ff0| 74 73 20 74 6f 20 63 69 | 63 6e 20 69 6d 61 67 65 |ts to ci|cn image|
|00005000| 0d 09 6d 6f 76 65 09 70 | 63 62 49 6d 61 67 65 4c |..move.p|cbImageL|
|00005010| 65 6e 67 74 68 28 61 34 | 29 2c 64 30 09 3b 20 73 |ength(a4|),d0.; s|
|00005020| 65 74 20 75 70 20 6c 65 | 6e 67 74 68 0d 09 6d 6f |et up le|ngth..mo|
|00005030| 76 65 2e 6c 09 73 63 72 | 61 74 63 68 49 6d 61 67 |ve.l.scr|atchImag|
|00005040| 65 28 61 34 29 2c 61 31 | 09 3b 20 69 6d 61 67 65 |e(a4),a1|.; image|
|00005050| 20 73 70 61 63 65 20 68 | 61 6e 64 6c 65 0d 09 6d | space h|andle..m|
|00005060| 6f 76 65 2e 6c 09 28 61 | 31 29 2c 61 31 09 09 09 |ove.l.(a|1),a1...|
|00005070| 3b 20 67 65 74 20 70 6f | 69 6e 74 65 72 0d 09 5f |; get po|inter.._|
|00005080| 42 6c 6f 63 6b 4d 6f 76 | 65 0d 09 74 73 74 09 64 |BlockMov|e..tst.d|
|00005090| 30 0d 09 62 6e 65 09 50 | 43 42 47 69 76 65 55 70 |0..bne.P|CBGiveUp|
|000050a0| 0d 0d 3b 20 63 6f 70 79 | 20 63 6f 6c 6f 72 20 74 |..; copy| color t|
|000050b0| 61 62 6c 65 20 64 61 74 | 61 20 69 6e 74 6f 20 73 |able dat|a into s|
|000050c0| 63 72 61 74 63 68 20 63 | 74 61 62 20 73 70 61 63 |cratch c|tab spac|
|000050d0| 65 0d 09 6d 6f 76 65 09 | 70 63 62 43 69 63 6e 4c |e..move.|pcbCicnL|
|000050e0| 65 6e 67 74 68 28 61 34 | 29 2c 64 30 09 3b 20 67 |ength(a4|),d0.; g|
|000050f0| 65 74 20 63 74 61 62 20 | 6f 66 66 73 65 74 0d 09 |et ctab |offset..|
|00005100| 6d 6f 76 65 2e 6c 09 61 | 33 2c 61 30 0d 09 61 64 |move.l.a|3,a0..ad|
|00005110| 64 61 09 64 30 2c 61 30 | 09 09 09 3b 20 70 6f 69 |da.d0,a0|...; poi|
|00005120| 6e 74 65 72 20 74 6f 20 | 63 74 61 62 0d 09 6d 6f |nter to |ctab..mo|
|00005130| 76 65 09 70 63 62 43 54 | 61 62 4c 65 6e 67 74 68 |ve.pcbCT|abLength|
|00005140| 28 61 34 29 2c 64 30 09 | 3b 20 63 74 61 62 20 6c |(a4),d0.|; ctab l|
|00005150| 65 6e 67 74 68 0d 09 6d | 6f 76 65 2e 6c 09 73 63 |ength..m|ove.l.sc|
|00005160| 72 61 74 63 68 43 74 61 | 62 28 61 34 29 2c 61 31 |ratchCta|b(a4),a1|
|00005170| 09 3b 20 68 61 6e 64 6c | 65 20 74 6f 20 73 63 72 |.; handl|e to scr|
|00005180| 61 74 63 68 20 63 74 61 | 62 0d 09 6d 6f 76 65 2e |atch cta|b..move.|
|00005190| 6c 09 28 61 31 29 2c 61 | 31 09 09 09 3b 20 70 6f |l.(a1),a|1...; po|
|000051a0| 69 6e 74 65 72 0d 09 5f | 42 6c 6f 63 6b 4d 6f 76 |inter.._|BlockMov|
|000051b0| 65 0d 09 74 73 74 09 64 | 30 0d 09 62 6e 65 09 50 |e..tst.d|0..bne.P|
|000051c0| 43 42 47 69 76 65 55 70 | 0d 0d 3b 20 63 6f 70 79 |CBGiveUp|..; copy|
|000051d0| 20 72 65 73 74 20 6f 66 | 20 69 74 20 69 6e 74 6f | rest of| it into|
|000051e0| 20 73 63 72 61 74 63 68 | 20 63 69 63 6e 20 73 70 | scratch| cicn sp|
|000051f0| 61 63 65 0d 09 6d 6f 76 | 65 2e 6c 09 61 33 2c 61 |ace..mov|e.l.a3,a|
|00005200| 30 09 09 09 3b 20 70 6f | 69 6e 74 65 72 20 74 6f |0...; po|inter to|
|00005210| 20 6d 61 69 6e 20 73 74 | 72 75 63 74 75 72 65 0d | main st|ructure.|
|00005220| 09 6d 6f 76 65 09 70 63 | 62 43 69 63 6e 4c 65 6e |.move.pc|bCicnLen|
|00005230| 67 74 68 28 61 34 29 2c | 64 30 09 3b 20 6c 65 6e |gth(a4),|d0.; len|
|00005240| 67 74 68 0d 09 6d 6f 76 | 65 2e 6c 09 73 63 72 61 |gth..mov|e.l.scra|
|00005250| 74 63 68 43 69 63 6e 28 | 61 34 29 2c 61 31 0d 09 |tchCicn(|a4),a1..|
|00005260| 6d 6f 76 65 2e 6c 09 28 | 61 31 29 2c 61 31 0d 09 |move.l.(|a1),a1..|
|00005270| 5f 42 6c 6f 63 6b 4d 6f | 76 65 0d 09 74 73 74 09 |_BlockMo|ve..tst.|
|00005280| 64 30 0d 09 62 6e 65 09 | 50 43 42 47 69 76 65 55 |d0..bne.|PCBGiveU|
|00005290| 70 0d 0d 3b 20 66 69 6c | 6c 20 69 6e 20 66 69 65 |p..; fil|l in fie|
|000052a0| 6c 64 73 20 6f 66 20 63 | 69 63 6e 3a 20 63 69 63 |lds of c|icn: cic|
|000052b0| 6e 20 42 61 73 65 41 64 | 64 72 2c 20 69 63 6f 6e |n BaseAd|dr, icon|
|000052c0| 20 50 4d 54 61 62 6c 65 | 2c 20 6d 61 73 6b 20 42 | PMTable|, mask B|
|000052d0| 61 73 65 41 64 64 72 2c | 20 42 4d 61 70 0d 3b 20 |aseAddr,| BMap.; |
|000052e0| 20 20 42 61 73 65 41 64 | 64 72 2c 20 49 63 6f 6e | BaseAd|dr, Icon|
|000052f0| 44 61 74 61 20 68 61 6e | 64 6c 65 0d 09 6d 6f 76 |Data han|dle..mov|
|00005300| 65 2e 6c 09 73 63 72 61 | 74 63 68 43 69 63 6e 28 |e.l.scra|tchCicn(|
|00005310| 61 34 29 2c 61 31 09 3b | 20 67 65 74 20 68 61 6e |a4),a1.;| get han|
|00005320| 64 6c 65 20 74 6f 20 63 | 69 63 6e 20 61 67 61 69 |dle to c|icn agai|
|00005330| 6e 0d 09 6d 6f 76 65 2e | 6c 09 28 61 31 29 2c 61 |n..move.|l.(a1),a|
|00005340| 31 09 09 09 3b 20 67 65 | 74 20 70 6f 69 6e 74 65 |1...; ge|t pointe|
|00005350| 72 0d 09 0d 09 6d 6f 76 | 65 2e 6c 09 73 63 72 61 |r....mov|e.l.scra|
|00005360| 74 63 68 49 6d 61 67 65 | 28 61 34 29 2c 61 30 0d |tchImage|(a4),a0.|
|00005370| 09 6d 6f 76 65 2e 6c 09 | 28 61 30 29 2c 61 30 0d |.move.l.|(a0),a0.|
|00005380| 09 6d 6f 76 65 2e 6c 09 | 61 30 2c 28 61 31 29 09 |.move.l.|a0,(a1).|
|00005390| 09 09 3b 20 66 69 6c 6c | 20 69 6e 20 50 4d 61 70 |..; fill| in PMap|
|000053a0| 20 42 61 73 65 41 64 64 | 72 0d 09 0d 09 6d 6f 76 | BaseAdd|r....mov|
|000053b0| 65 2e 6c 09 73 63 72 61 | 74 63 68 43 54 61 62 28 |e.l.scra|tchCTab(|
|000053c0| 61 34 29 2c 61 30 0d 09 | 6d 6f 76 65 2e 6c 09 61 |a4),a0..|move.l.a|
|000053d0| 30 2c 34 32 28 61 31 29 | 09 09 3b 20 66 69 6c 6c |0,42(a1)|..; fill|
|000053e0| 20 69 6e 20 50 4d 61 70 | 20 50 4d 54 61 62 6c 65 | in PMap| PMTable|
|000053f0| 0d 09 0d 09 6d 6f 76 65 | 2e 6c 09 61 31 2c 61 30 |....move|.l.a1,a0|
|00005400| 0d 09 61 64 64 61 09 38 | 32 2c 61 30 09 09 09 3b |..adda.8|2,a0...;|
|00005410| 20 70 6f 69 6e 74 73 20 | 74 6f 20 6d 61 73 6b 20 | points |to mask |
|00005420| 64 61 74 61 0d 09 6d 6f | 76 65 2e 6c 09 61 30 2c |data..mo|ve.l.a0,|
|00005430| 35 30 28 61 31 29 09 09 | 3b 20 66 69 6c 6c 20 69 |50(a1)..|; fill i|
|00005440| 6e 20 49 63 6f 6e 4d 61 | 73 6b 20 62 61 73 65 41 |n IconMa|sk baseA|
|00005450| 64 64 72 0d 09 0d 09 6d | 6f 76 65 2e 6c 09 61 31 |ddr....m|ove.l.a1|
|00005460| 2c 61 30 0d 09 61 64 64 | 61 09 70 63 62 42 6d 61 |,a0..add|a.pcbBma|
|00005470| 70 4f 66 66 73 65 74 28 | 61 34 29 2c 61 30 09 3b |pOffset(|a4),a0.;|
|00005480| 20 70 6f 69 6e 74 73 20 | 74 6f 20 42 4d 61 70 0d | points |to BMap.|
|00005490| 09 6d 6f 76 65 2e 6c 09 | 61 30 2c 36 34 28 61 31 |.move.l.|a0,64(a1|
|000054a0| 29 09 09 3b 20 66 69 6c | 6c 20 69 6e 20 42 4d 61 |)..; fil|l in BMa|
|000054b0| 70 20 62 61 73 65 41 64 | 64 72 0d 09 0d 09 6d 6f |p baseAd|dr....mo|
|000054c0| 76 65 2e 6c 09 73 63 72 | 61 74 63 68 49 6d 61 67 |ve.l.scr|atchImag|
|000054d0| 65 28 61 34 29 2c 37 38 | 28 61 31 29 09 3b 20 66 |e(a4),78|(a1).; f|
|000054e0| 69 6c 6c 20 69 6e 20 49 | 63 6f 6e 44 61 74 61 20 |ill in I|conData |
|000054f0| 68 61 6e 64 6c 65 0d 0d | 3b 20 63 61 6c 6c 20 50 |handle..|; call P|
|00005500| 6c 6f 74 43 49 63 6f 6e | 2e 20 20 54 68 65 20 50 |lotCIcon|. The P|
|00005510| 61 73 63 61 6c 20 69 6e | 74 65 72 66 61 63 65 20 |ascal in|terface |
|00005520| 66 6f 72 20 74 68 69 73 | 20 69 73 3a 0d 3b 20 20 |for this| is:.; |
|00005530| 20 20 20 20 20 50 6c 6f | 74 43 49 63 6f 6e 28 72 | Plo|tCIcon(r|
|00005540| 3a 20 52 65 63 74 3b 20 | 69 63 6f 6e 3a 20 63 49 |: Rect; |icon: cI|
|00005550| 63 6f 6e 48 61 6e 64 6c | 65 29 3b 0d 0d 3b 09 6d |conHandl|e);..;.m|
|00005560| 6f 76 65 2e 6c 09 70 61 | 72 6d 5f 72 65 63 74 70 |ove.l.pa|rm_rectp|
|00005570| 74 72 28 61 36 29 2c 2d | 28 73 70 29 09 3b 20 72 |tr(a6),-|(sp).; r|
|00005580| 65 63 74 0d 3b 09 6d 6f | 76 65 2e 6c 09 73 63 72 |ect.;.mo|ve.l.scr|
|00005590| 61 74 63 68 43 69 63 6e | 28 61 34 29 2c 2d 28 73 |atchCicn|(a4),-(s|
|000055a0| 70 29 09 3b 20 63 69 63 | 6e 20 68 61 6e 64 6c 65 |p).; cic|n handle|
|000055b0| 0d 3b 09 64 63 2e 77 09 | 24 41 41 31 46 09 09 09 |.;.dc.w.|$AA1F...|
|000055c0| 3b 20 74 72 61 70 20 77 | 6f 72 64 20 66 6f 72 20 |; trap w|ord for |
|000055d0| 50 6c 6f 74 43 49 63 6f | 6e 0d 0d 09 70 65 61 09 |PlotCIco|n...pea.|
|000055e0| 62 6c 61 63 6b 52 47 42 | 28 70 63 29 0d 09 64 63 |blackRGB|(pc)..dc|
|000055f0| 2e 77 09 24 41 41 31 34 | 09 09 09 3b 20 74 72 61 |.w.$AA14|...; tra|
|00005600| 70 20 77 6f 72 64 20 66 | 6f 72 20 52 47 42 46 6f |p word f|or RGBFo|
|00005610| 72 65 43 6f 6c 6f 72 0d | 09 0d 09 70 65 61 09 77 |reColor.|...pea.w|
|00005620| 68 69 74 65 52 47 42 28 | 70 63 29 0d 09 64 63 2e |hiteRGB(|pc)..dc.|
|00005630| 77 09 24 41 41 31 35 09 | 09 09 3b 20 74 72 61 70 |w.$AA15.|..; trap|
|00005640| 20 77 6f 72 64 20 66 6f | 72 20 52 47 42 42 61 63 | word fo|r RGBBac|
|00005650| 6b 43 6f 6c 6f 72 0d 09 | 0d 3b 09 70 65 61 09 67 |kColor..|.;.pea.g|
|00005660| 72 61 79 52 47 42 28 70 | 63 29 0d 3b 09 64 63 2e |rayRGB(p|c).;.dc.|
|00005670| 77 09 24 41 41 32 31 09 | 09 09 3b 20 74 72 61 70 |w.$AA21.|..; trap|
|00005680| 20 77 6f 72 64 20 66 6f | 72 20 4f 70 43 6f 6c 6f | word fo|r OpColo|
|00005690| 72 0d 09 0d 09 6d 6f 76 | 65 2e 6c 09 73 63 72 61 |r....mov|e.l.scra|
|000056a0| 74 63 68 43 69 63 6e 28 | 61 34 29 2c 61 31 09 3b |tchCicn(|a4),a1.;|
|000056b0| 20 67 65 74 20 68 61 6e | 64 6c 65 20 74 6f 20 63 | get han|dle to c|
|000056c0| 69 63 6e 0d 09 6d 6f 76 | 65 2e 6c 09 28 61 31 29 |icn..mov|e.l.(a1)|
|000056d0| 2c 2d 28 73 70 29 09 09 | 3b 20 70 75 73 68 20 70 |,-(sp)..|; push p|
|000056e0| 6f 69 6e 74 65 72 20 74 | 6f 20 73 72 63 20 62 69 |ointer t|o src bi|
|000056f0| 74 73 0d 09 0d 09 70 65 | 61 09 63 75 72 50 6f 72 |ts....pe|a.curPor|
|00005700| 74 28 61 34 29 0d 09 5f | 47 65 74 50 6f 72 74 0d |t(a4).._|GetPort.|
|00005710| 09 6d 6f 76 65 2e 6c 09 | 63 75 72 50 6f 72 74 28 |.move.l.|curPort(|
|00005720| 61 34 29 2c 61 31 09 09 | 3b 20 67 65 74 20 70 6f |a4),a1..|; get po|
|00005730| 69 6e 74 65 72 20 74 6f | 20 70 6f 72 74 0d 09 6c |inter to| port..l|
|00005740| 65 61 09 32 28 61 31 29 | 2c 20 61 31 09 09 3b 20 |ea.2(a1)|, a1..; |
|00005750| 70 6f 69 6e 74 65 72 20 | 74 6f 20 70 6f 72 74 27 |pointer |to port'|
|00005760| 73 20 62 69 74 6d 61 70 | 0d 09 6d 6f 76 65 2e 6c |s bitmap|..move.l|
|00005770| 09 61 31 2c 20 2d 28 73 | 70 29 0d 09 0d 09 6d 6f |.a1, -(s|p)....mo|
|00005780| 76 65 2e 6c 09 73 63 72 | 61 74 63 68 43 69 63 6e |ve.l.scr|atchCicn|
|00005790| 28 61 34 29 2c 61 31 09 | 3b 20 67 65 74 20 68 61 |(a4),a1.|; get ha|
|000057a0| 6e 64 6c 65 20 74 6f 20 | 63 69 63 6e 0d 09 6d 6f |ndle to |cicn..mo|
|000057b0| 76 65 2e 6c 09 28 61 31 | 29 2c 61 31 09 09 09 3b |ve.l.(a1|),a1...;|
|000057c0| 20 67 65 74 20 70 6f 69 | 6e 74 65 72 20 74 6f 20 | get poi|nter to |
|000057d0| 63 69 63 6e 0d 09 6c 65 | 61 09 36 28 61 31 29 2c |cicn..le|a.6(a1),|
|000057e0| 20 61 31 09 09 3b 20 70 | 6f 69 6e 74 65 72 20 74 | a1..; p|ointer t|
|000057f0| 6f 20 62 6f 75 6e 64 73 | 20 72 65 63 74 0d 09 6d |o bounds| rect..m|
|00005800| 6f 76 65 2e 6c 09 61 31 | 2c 2d 28 73 70 29 0d 0d |ove.l.a1|,-(sp)..|
|00005810| 09 6d 6f 76 65 2e 6c 09 | 70 61 72 6d 5f 72 65 63 |.move.l.|parm_rec|
|00005820| 74 70 74 72 28 61 36 29 | 2c 2d 28 73 70 29 09 3b |tptr(a6)|,-(sp).;|
|00005830| 20 64 65 73 74 20 72 65 | 63 74 20 70 6f 69 6e 74 | dest re|ct point|
|00005840| 65 72 0d 0d 3b 09 5f 44 | 65 62 75 67 67 65 72 0d |er..;._D|ebugger.|
|00005850| 3b 09 6d 6f 76 65 09 70 | 61 72 6d 5f 6d 6f 64 65 |;.move.p|arm_mode|
|00005860| 28 61 36 29 2c 64 30 09 | 3b 20 67 65 74 20 74 72 |(a6),d0.|; get tr|
|00005870| 61 6e 73 66 65 72 20 6d | 6f 64 65 0d 3b 09 63 6f |ansfer m|ode.;.co|
|00005880| 6d 70 61 72 65 09 64 30 | 2c 23 31 09 09 09 3b 20 |mpare.d0|,#1...; |
|00005890| 69 66 20 69 74 27 73 20 | 73 72 63 42 69 63 2c 20 |if it's |srcBic, |
|000058a0| 73 75 62 73 74 69 74 75 | 74 65 20 61 64 64 50 69 |substitu|te addPi|
|000058b0| 6e 2e 0d 3b 09 62 6e 65 | 09 50 43 42 50 31 0d 0d |n..;.bne|.PCBP1..|
|000058c0| 3b 20 77 65 20 61 6c 77 | 61 79 73 20 75 73 65 20 |; we alw|ays use |
|000058d0| 74 72 61 6e 73 70 61 72 | 65 6e 74 20 6d 6f 64 65 |transpar|ent mode|
|000058e0| 20 28 74 68 65 20 46 69 | 6e 64 65 72 20 61 6c 77 | (the Fi|nder alw|
|000058f0| 61 79 73 20 75 73 65 73 | 20 73 72 63 4f 72 20 6d |ays uses| srcOr m|
|00005900| 6f 64 65 29 0d 09 6d 6f | 76 65 09 23 33 36 2c 64 |ode)..mo|ve.#36,d|
|00005910| 30 0d 50 43 42 50 31 3a | 09 6d 6f 76 65 09 64 30 |0.PCBP1:|.move.d0|
|00005920| 2c 20 2d 28 73 70 29 09 | 09 3b 20 70 75 73 68 20 |, -(sp).|.; push |
|00005930| 6d 6f 64 65 0d 09 63 6c | 72 2e 6c 09 2d 28 73 70 |mode..cl|r.l.-(sp|
|00005940| 29 09 09 09 3b 20 6e 6f | 20 6d 61 73 6b 0d 09 5f |)...; no| mask.._|
|00005950| 43 6f 70 79 42 69 74 73 | 0d 09 0d 50 43 42 47 69 |CopyBits|...PCBGi|
|00005960| 76 65 55 70 3a 0d 0d 09 | 52 45 53 54 4f 52 45 5f |veUp:...|RESTORE_|
|00005970| 41 4c 4c 0d 09 53 54 41 | 43 4b 5f 45 4e 44 0d 0d |ALL..STA|CK_END..|
|00005980| 77 68 69 74 65 52 47 42 | 09 64 63 2e 77 20 24 66 |whiteRGB|.dc.w $f|
|00005990| 66 66 66 2c 20 24 66 66 | 66 66 2c 20 24 66 66 66 |fff, $ff|ff, $fff|
|000059a0| 66 0d 62 6c 61 63 6b 52 | 47 42 09 64 63 2e 77 20 |f.blackR|GB.dc.w |
|000059b0| 30 2c 20 30 2c 20 30 0d | 67 72 61 79 52 47 42 09 |0, 0, 0.|grayRGB.|
|000059c0| 09 64 63 2e 77 20 24 38 | 30 30 30 2c 20 24 38 30 |.dc.w $8|000, $80|
|000059d0| 30 30 2c 20 24 38 30 30 | 30 0d 0d 3b 20 65 6e 64 |00, $800|0..; end|
|000059e0| 20 6f 66 20 70 61 74 63 | 68 2e 61 73 6d 0d 0d 00 | of patc|h.asm...|
|000059f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a00| 00 00 01 00 00 00 01 1d | 00 00 00 1d 00 00 00 c8 |........|........|
|00005a10| 01 07 01 07 01 07 02 06 | 02 04 01 03 03 06 01 07 |........|........|
|00005a20| 00 09 03 04 02 06 02 07 | 03 05 03 05 02 03 02 02 |........|........|
|00005a30| 0b 70 61 74 63 68 49 50 | 2e 61 73 6d 02 00 00 00 |.patchIP|.asm....|
|00005a40| 54 45 58 54 45 44 49 54 | 01 00 00 64 00 60 00 00 |TEXTEDIT|...d.`..|
|00005a50| 00 00 54 45 58 54 45 44 | 49 54 01 00 00 64 00 60 |..TEXTED|IT...d.`|
|00005a60| 00 00 3b 18 00 00 00 00 | 00 00 00 00 00 00 00 00 |..;.....|........|
|00005a70| 00 00 9f c2 c2 77 00 00 | 59 6f 00 00 01 e5 02 02 |.....w..|Yo......|
|00005a80| 02 02 02 02 03 05 03 04 | 02 08 03 05 00 04 05 04 |........|........|
|00005a90| 00 09 02 06 4e ba 00 00 | 00 42 00 00 00 81 00 00 |....N...|.B......|
|00005aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 01 00 01 |........|........|
|00005ad0| 00 0a 00 00 40 8a 00 0a | 00 00 04 73 00 00 0a 26 |....@...|...s...&|
|00005ae0| 90 00 00 00 00 ff 00 0c | ff ff ff fd 00 0d 00 0b |........|........|
|00005af0| 04 09 00 08 00 03 00 00 | 00 46 00 08 00 00 00 00 |........|.F......|
|00005b00| 00 00 00 11 00 0a 0d 4e | 61 72 72 6f 77 20 4d 6f |.......N|arrow Mo|
|00005b10| 6e 61 63 6f 00 00 00 00 | 04 00 05 00 08 00 00 01 |naco....|........|
|00005b20| 00 00 00 01 1d 00 00 00 | 1d 00 00 00 c8 00 09 cb |........|........|
|00005b30| 10 09 8e 00 00 00 1c 00 | 46 00 01 45 46 4e 54 00 |........|F..EFNT.|
|00005b40| 00 00 12 45 54 41 42 00 | 00 00 1e 03 eb 00 00 00 |...ETAB.|........|
|00005b50| 00 00 00 00 09 e3 98 03 | ec 00 41 00 00 00 15 00 |........|..A.....|
|00005b60| 09 e3 94 40 81 00 00 40 | 80 2a 14 00 1c ee 5c 00 |...@...@|.*....\.|
|00005b70| 1c ee 5e 00 1c ee 60 00 | 1c ee 62 00 1c ee 64 00 |..^...`.|..b...d.|
|00005b80| 1c ee 66 00 1c ee 68 00 | 1c ee 6a 00 1c ec ea 00 |..f...h.|..j.....|
|00005b90| 1c ee 6c 00 1c ee 6e 00 | 1c ee 6e 00 1c ee 6e 00 |..l...n.|..n...n.|
|00005ba0| 1c ee 6e 00 40 81 00 00 | 40 80 2a 14 00 1c ee 5c |..n.@...|@.*....\|
|00005bb0| 00 1c ee 5e 00 1c ee 60 | 00 1c ee 62 00 1c ee 64 |...^...`|...b...d|
|00005bc0| 00 1c ee 66 00 1c ee 68 | 00 1c ee 6a 00 1c ec ea |...f...h|...j....|
|00005bd0| 00 1c ee 6c 00 1c ee 6e | 00 1c ee 6e 00 1c ee 6e |...l...n|...n...n|
|00005be0| 00 1c ee 6e 00 00 00 00 | 00 00 00 00 00 00 00 00 |...n....|........|
|00005bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+